Git Product home page Git Product logo

scripts's Introduction

Installing Frappe and ๐ŸŒŸ ERPNext ๐ŸŒŸ :

First thing First update and upgrade your system

sudo apt-get update && sudo apt-get upgrade -y

installing all packages ๐Ÿ“ฆ๐Ÿ“ฆ:

sudo apt install mariadb-server mariadb-client libmariadb-dev curl git python3-dev redis-server software-properties-common xvfb libfontconfig wkhtmltopdf python3-pip nginx supervisor -y

mariadb-server To connect to MariaDB Server using MariaDB Connector/Python.

mariadb-client To connect to MariaDB Server using MariaDB Connector/Python.

libmariadb-dev Library for mariaDB.

curl Curl is a command-line tool for transferring data specified with URL syntax.

git is a free and open source distributed version control system.

python3-dev python-dev contains the header files you need to build Python extensions.

redis-server Redis is an open source (BSD licensed), in-memory data structure store, used as a database.

software-properties-common This software provides an abstraction of the used apt repositories.

xvfb Xvfb (short for X virtual framebuffer) is an in-memory display server for UNIX-like operating system (e.g., Linux).

libfontconfig is a library for configuring and customizing font access.

wkhtmltopdf is command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering.

python3-pip it defaults to installing pip.

nginx is open source software for web serving, reverse proxying.

supervisor Controlling Nginx with Supervisor.

After installing new generators or updating the configuration, systemctl daemon-reload may be executed. This will delete the previous configuration created by generators, re-run all generators, and cause systemd to reload units from disk.

systemctl daemon-reload

Now run the following command to available on Unix systems, and enables you to improve the security of your MariaDB installation

sudo mysql_secure_installation
sudo service mysql restart

and now download nodejs 16

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install 16

Now remove those dependencies that were installed with applications and are no longer used by anything else on the system

sudo apt autoremove

now install the yarn

npm install -g yarn

and is a package manager that doubles down as project manager.

now install bench repository

git clone https://github.com/frappe/bench bench-repo

and bench is a command-line utility that helps you to install, update, and manage multiple sites for Frappe/ERPNext

now install it

sudo pip install -e bench-repo

now init frappe-bench and go inside it

bench init frappe-bench && cd frappe-bench

init Initialize a new bench instance in the specified path.

Frappe apps are run by frappe sites and you will have to create at least one site. The new-site command allows you to do that.

bench new-site site1.local

Add apps

The get-app command gets remote frappe apps from a remote git repository and installs them. Example: erpnext

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

Install apps

To install an app on your new site, use the bench install-app command.

bench --site site1.local install-app erpnext

Start bench

To start using the bench, use the bench start command

bench start

Download WhiteLable for editing Navbar

bench get-app https://github.com/bhavesh95863/whitelabel

Install WhiteLable

bench --site site1.local install-app whitelabel

Now Run this command with Bench Starting

bench migrate

Restart The Bench

bench restart

Clear The Cache ๐Ÿงน

bench clear-cache

Now close windows and re-run the bench

bench start

open in the browser ๐Ÿ–ฑ๏ธ

localhost:8000
Username Password
Administrator Your Password

scripts's People

Contributors

learnwithbilal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.