Frappe again!

Table of Contents

Frappe Again!

Previous posts seems kind of messy, I myself find them hard to follow. Well let’s see if I can create this post a better mess.

To get started with Frappe:

Step 1:

Prepare your system:

  1. Python
  2. MariaDB
  3. Redis

This must be installed.

Step 2:

Install Frappe using pip.

Step 3:

Initiate a bench

Bench is the place where you’ll download, install, create apps and sites.

  • Apps: Are the functional entities inside Frappe, they contain Doctypes, Views, Tables and many many more stuff.
  • Sites: Are the places where these Apps can be installed and used. Sites can contain multiple apps.
$ bench init bench_name

Step 4:

Create a site. Every Site has a Frappe App preinstalled.

Frappe App:

Which contains:

  • User
  • Website
  • Tools

These modules

$ bench new-site [site name]
$ bench --site [site name] set-config developer_mode 1

Dev mode is good to have.

Add this site to your hosts file:

$ bench --site b[site name] add-to-hosts

After creating a site and adding it to a host you can visit the site [site name]:8000 here.

Do not setup the site if you want to install ERPNext on it.

First install ERPNext to the site then start working.

Step 5:

Installing ERPNext:

Download it:

$ bench get-app erpnext https://github.com/frappe/erpnext

Add it to your site:

$ bench --site [sitename] install-app erpnext

Now open your site and login with administrator.

Uninstalling app from site

https://frappeframework.com/docs/user/en/bench/reference/uninstall-app

$ bench --site {site} uninstall-app {app} --yes

Removing a site:

https://frappeframework.com/docs/user/en/bench/reference/drop-site

$ bench drop-site site.name --force