Skip to content

E-Commerce website backend where customer can buy any product and if company wants to add, update, delete product or customer that can also be done. There are different Api’s which help to do the above activity.

Notifications You must be signed in to change notification settings

shubhamsarkar9654/Turing-e-commerce-bakend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce website backend

Created E-Commerce website backend where customer can buy any product and if company wants to add, update, delete product or customer that can also be done. There are different Api’s which help to do the above activity.

Install important tools using command :

  • sudo apt-get install git
  • sudo apt-get install nodejs

Clone this app using the command:

  • git clone https://github.com/shubhamsarkar9654/Turing-e-commerce-bakend

Instructions of usage:

How to run the Project?

  1. cd e-commerce_backend/
  2. npm install to install the dependencies
  3. Create a .env file in the root directory of the project and update the required variables. You can use sample.env as the skeleton.
  4. npm start to run the server. The server will run with auto reloading using nodemon.

Note: Check Import Schema section under Important Commands to see how to import the tshirtshop.sql file into your DB.

Important Commands

Export Schema of DB

mysqldump -u root -p --no-data e_commerce > schema.sql

Import Schema

mysql -u username -p e_commerce < sqlScript/tshirtshop.sql

Run server with Auto Reload

npm start

This needs to be run from the root of the project.

Make sure to re-start the server after doing adding product,customer because the product features loads all the products and customer in memory to load the customer or product. If you don't restart the server, then it will keep on products or customer from the old dtabase memory.

About

E-Commerce website backend where customer can buy any product and if company wants to add, update, delete product or customer that can also be done. There are different Api’s which help to do the above activity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published