CustomApplication And Site
Creation In ERPNext
To
Make a New
CustomeApp
Follow below commands
To
Create CustomAPP
$
bench
new-app [CustomApp-Name]App Title (defaut: Lib Mgt):CustomApptitleApp Description: App for managing Articles, Members, Memberships and Transactions for LibrariesApp Publisher: FrappéApp Email: info@frappe.ioApp Icon (default 'octicon octicon-file-directory'): octicon octicon-bookApp Color (default 'grey'): #589494App License (default 'MIT'): GNU General Public LicenseSetting up siteFirst we need to addbelow code in my.nfGo to /etc/mysql/my.nf[mysqld]innodb-file-format=barracudainnodb-file-per-table=1innodb-large-prefix=1character-set-client-handshake = FALSEcharacter-set-server = utf8mb4collation-server = utf8mb4_unicode_ci[mysql]default-character-set = utf8mb4To Create New Site$ bench new-site[site-name]MySQL root password:Installing frappe...Updating frappe : [========================================]Updating country info : [========================================]Set Administrator password:Re-enter Administrator password:Installing fixtures...*** Scheduler is disabled ***ToSetting Default Site$ bench use[site-name]ToInstall Appin new site$ bench --site[site-name]install-app[CustomApp-Name]
Starting
the Bench
Go
to frappe-bench installtion folder and start bench$
bench
startYou can now open your browser and go to http://localhost:8000. You should see this login page if all goes well:
Now
login with :
Password : Use the password that was created during installation
When you login, you should see the "Desk" home page
CustomApplication Creation
And CustomApplication installation in
Default site ERPNext
To Create CustomAPP
$ bench new-app
[
CustomApp_Name]
To
Create CustomAPP In default site of Erpnext
$ bench –site site1.local
install-app [
CustomApp_Name]
we need to add some content
in custom app to add custom fields in default site of erpnext
go to--> frappe-bench/apps/
CustomApp_Name/CustomApp_Name.egg-info/requires.txt
and add erpnext in second linego
to--> frappe-bench/apps/CustomApp_Name/CustomApp_Name/hooks.py
and addfixtures
= [“Custom Field”]To
Export Custom FieldGoTO -->
frappe-becnh installtion folder and run below commandbench
–site site1.local export-fixturesTo
install custom application in erpnextGoTo-->frappe-bench
installation folder1)
To get custom app from git-hub run below command$
bench get-app [GITHUB_URL]GITHUB_URL-->
eg:~https://github.com/MeritSystemsPvtLtd/E-Commerce.git2)
To install custom app run below command$
bench install-app [e_commerce]To
Uploade Folders[data] into GitHubecho "# E-Commerce" >> README.mdgit init
git add README.md
git add .
git commit -m "first commit"
git remote add origin https://github.com/MeritSystemsPvtLtd/E-Commerce.git
git push -u origin master
Comments
Post a Comment