Skip to content

HeliosRG/Inventory-Management-and-Billing-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Store Management and Billing Website using NodeJS, EJS, MySQL and Javascript

Features

  • Stock Inventory
  • Billing
  • Sales Analysis
  • Stock Analysis
  • Generation of Bill in printable format

Tech Stack

Client: Javascript, Bootstrap, Semantic-UI

Server: Node, Express

MySQL database setup and congfiguration

Install MySQL

  https://dev.mysql.com/downloads/installer/

MySQL Installation Guide

Download all the project details and instructions from here:

```bash
  https://drive.google.com/drive/u/0/folders/1T9qs_w3x7mhqCJABqyxbQR-a3u_jLsSn

Open mysql command prompt(as Administrator) and run the following command:-

  create database warehousedb;

Copy that sql file into this location (Your MySQL Server version could be different)

  C:\Program Files\MySQL\MySQL Server 8.0\bin

Now open command prompt(as Administrator) and execute following commands

  cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"
  mysql –u root –p warehousedb < warehousedb.sql

Install node dependencies and run server locally

Download and install node from here

  https://nodejs.org/en/download/

Clone the project (You can also download this project directly as a zip file by clicking on Code present on top of this page and then clicking Download Zip)

  git clone https://github.com/HeliosRG/Inventory-Management-and-Billing-System.git

Go to the project directory

  cd Store-Management-and-Billing-Website

Install dependencies

  npm install

Start the server (Please set up the environment variables before starting the server)

  npm run start

Type this is your browser to open the local version of the website

  http://localhost:5000/

Environment Variables

To run this project, you will need to add the following environment variables to your .env file (Create a file named .env at the root of your project directory, i.e., in Store-Management-and-Billing-Website folder)

SESSION_SECRET=secret

db_name=warehousedb

db_user_name=<database_user_name>

db_password=<database_password>

login_id=<login_email_address>

login_password=<password_for_login>

Here login_id and login_password are the login credentials for the website. Similarly db_user_name and db_password are the credenials for the MySQL database which was configured during installation of MySQL. So please change all the credentials accordingly. Leave SESSION_SECRET=secret and db_name=warehousedb as it is.

Folowing is an example with actual values in a .env file:-

SESSION_SECRET=secret

db_name=warehousedb

db_user_name=root

db_password=root1234

login_id=admin@xyz.com

login_password=admin1234

In the .env file, don't use double quotes for values and there should be no space before or after =. Also you can edit the shop name and other details on the bill pdf generated by simply going to views/bill.ejs and editing lines 488 to 494 in the file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published