Skip to main content

Custom Application in Erpnext


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): CustomApp title
App Description:  App for managing Articles, Members, Memberships and Transactions for Libraries
App Publisher: Frappé
App Email: info@frappe.io
App Icon (default 'octicon octicon-file-directory'): octicon octicon-book
App Color (default 'grey'): #589494
App License (default 'MIT'): GNU General Public License
Setting up site
First we need to add below code in my.nf
Go to /etc/mysql/my.nf
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4
To 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 ***



To Setting Default Site
$ bench use [site-name]
To Install App in new site
$ bench --site [site-name] install-app [CustomApp-Name]

Starting the Bench

Go to frappe-bench installtion folder and start bench
$ bench start
You can now open your browser and go to http://localhost:8000. You should see this login page if all goes well:
Now login with :
Login ID: Administrator
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 line
go to--> frappe-bench/apps/CustomApp_Name/CustomApp_Name/hooks.py and add
fixtures = [“Custom Field”]
To Export Custom Field
GoTO --> frappe-becnh installtion folder and run below command
bench –site site1.local export-fixtures




To install custom application in erpnext


GoTo-->frappe-bench installation folder
1) To get custom app from git-hub run below command
$ bench get-app [GITHUB_URL]
2) To install custom app run below command
$ bench install-app [e_commerce]


To Uploade Folders[data] into GitHub


echo "# 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

Popular posts from this blog

Pushing data to Github Repository on Command Line

echo "# Repository Name In Github" >> README.md git init             [this command initializes the repository in your local system] git add README.md    [ whaich folder you want to push] git add .            [this command adds all the files in thw folder] git commit -m "first commit" [Commit message you can give what you want] git remote add origin https://github.com/MeritSystemsPvtLtd/E-Commerce.git [connection to your repository] git push -u origin master [Pushing data to your github repository]