Skip to content

A bash script to install latest Frappe/ERPNext on a *nix system.

Notifications You must be signed in to change notification settings

anxkhn/frappe-installer-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Frappe-ERPNext Installation Script

This script automates the installation process for Frappe/ERPNext Version-15 on Ubuntu 22.04 LTS. It handles all necessary dependencies, configurations, and initialization steps to get your Frappe/ERPNext instance up and running with a test app.

Motivation

Click to expand the motivation section When I interned at Frappe, setting up my bench and getting started took up to a week of internet searches and trial and error. Back then the process was tedious, involving extensive copying and pasting of commands and encountering a lot errors and dependencies issues, which left me feeling lost.

I lacked a lot of knowledge that I've since gained, and I want to give back. The goal of this bash script is straightforward: to streamline the setup of Frappe bench, reducing the time from one week to minutes, getting it up and running ASAP. Previously, the process was convoluted, requiring multiple steps and dependencies. This installer aims to simplify everything with just one command . You don't even need to worry about having git or curl installed on your system; this installer, in similar fashion to Frappe framework, comes batteries included. From start to finish, it's all done with a single command.

Demo

Here's to a demo installation on a freshly spun Virtual Machine running Ubuntu 22 LTS, making the process as swift and seamless as possible.

Demo Video

Installation Steps

  1. Download and Run the Script: (Recommended)

Execute the following command in your terminal:

wget -O installer.sh https://raw.githubusercontent.com/anxkhn/frappe-installer-bash/main/installer.sh && chmod +x installer.sh && ./installer.sh

You may use a VPN, change your DNS provider to Google/Cloudflare/etc or use the following step to download the script and run it locally.

  1. Clone the Repository and Run the Script:

Execute the script by running:

sudo apt install -y git
git clone https://github.com/anxkhn/frappe-installer-bash
cd frappe-installer-bash
chmod +x installer.sh
./installer.sh

This script will automatically install Frappe/ERPNext along with all required dependencies and configurations.

  1. Enter Necessary Passwords:

During the installation process, you will be prompted to enter the following passwords:

  • Root Password: Enter the password for root user to install necessary dependencies.
  • MariaDB Root Password: Enter a secure password for the MariaDB root user.
  • Administrator Password: Enter a secure password for the Frappe/ERPNext administrator.

Make sure to remember these passwords as they will be required to access the Frappe/ERPNext instance.

  1. Access Frappe/ERPNext:

Once the installation completes successfully, access Frappe/ERPNext by navigating to http://hello.com:8000 in your web browser.

  1. Additional Information:

Future Work

  • Implement resuming from a missing step
  • Introduce command-line arguments for additional options
  • Implement debug tools to check packages and configurations
  • Enhance command-line output with colors for better readability
  • Improve handling of existing installed packages
  • Improve error handling with proper status codes
  • Add support for MacOS

References

About

A bash script to install latest Frappe/ERPNext on a *nix system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages