Software Development

Application creation and installation process in ERPNext


In this blog, we will see the process of creating and installing applications in ERPNext and how to install a new application in ERPNext from Github.

Here we will create a new application named library_management. We use bench commands to perform all operations regarding the new application.

bench new-app library_management

(The above command will create all the files needed for the application)

Application directory structure:-

apps/library_management
├── MANIFEST.in
├── README.md
├── library_management
│   ├── hooks.py
│   ├── library_management
│   │   └── __init__.py
│   ├── modules.txt
│   ├── patches.txt
│   ├── public
│   │   ├── css
│   │   └── js
│   ├── templates
│   │   ├── __init__.py
│   │   ├── includes
│   │   └── pages
│   │       └── __init__.py
│   └── www
├── requirements.txt
└── setup.py

Description of all directories and files:-

  • library_management: – This directory will contain all the source code of your application
    • public: – This is a static folder and served by Nginx in production
    • models: – Jinja models used to render web views
    • www: – Web pages served based on their directory path
    • library_management: – Default module booted with the application
    • modules.txt: – List of modules defined in the application
    • patches.txt: – Patch entries for database migrations
    • hooks.py: – Hooks used to extend or inherit standard functionality provided by the framework
    • requirements.txt: – It contains a list of Python packages required by the application to function correctly.

Installing the application on a specific site:-

To use the application created above, we need to install it on our site.

The bench command below will install the application.

bench --site site_name install-app library_management

The command below will list all applications installed on a site.

bench --site site_name list-apps

Install an app from the GitHub repository

If we have an application created and hosted on GitHub, we can obtain and install it.

Use the commands below to get the app and then install it.

bench get-app --branch main 

bench --site site_name install-app library_management

NEED HELP?

I hope you find the guide useful! Please feel free to share your thoughts in the comments below.

If you still have any issues/questions regarding the application installation process in ERPNext, please create a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.

Please also explore our Odoo development services and a wide range of quality Odoo apps..

For any doubts, contact us at (email protected).

Thank you for your attention !!



Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button