Skip to content

Ecommerce website for purchasing books. Built using NodeJS(expressJS) for backend, ejs for frontend and mySQL for database.

Notifications You must be signed in to change notification settings

shreyventure/book-store-rdbms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

book-store-rdbms

Steps to setup

  • Create a mySQL user, navigate to config/keys.js and devloper/config/keys.js, update the user information.
  • In mySQL create four tables, products, users, dev, transactions .
  • This is how your database should look:

  • Make sure to add the following descriptions to your table:

At this point we are pretty much setup with the database.

Steps to install packages

  • Open up a terminal/command prompt in the project's directory.
  • Type in
$ npm install

once done type in

$ npm run devloper-install
  • Setup your stripes sandbox profile, copy the private and secret keys, head to config/keys.js and devloper/config/keys.js, and paste those in.
  • In your terminal/command prompt hit
$ npm start

If everything goes fine, on your browser navigate to localhost:5000 to buy books, and for admins navigate to localhost:8000 to add, update, delete books.

About

Ecommerce website for purchasing books. Built using NodeJS(expressJS) for backend, ejs for frontend and mySQL for database.

Topics

Resources

Stars

Watchers

Forks