/node-mongodb-shop

Book shop made with NodeJS

Primary LanguageJavaScript

NodeJS Book Shop

Full stack project for an online book shop. This is a multiple-page application using server-side rendering.

Stack

  • NodeJS/Express.js
  • EJS for server-side rendering
  • Sass
  • MongoDB

Features implemented

  • User account creation

  • Secure login and password reset

  • Adding/Editing/Deleting a product with permissions

  • List of books available

  • Adding to cart

  • Placing an order

  • Pagination
  • Order invoice PDF creation
  • User session with cookies
  • Image upload
  • Password encryption

Start this project

  • Download the source code
  • Run
$ npm i
  • Make sure you have a MongoDB server running.
  • Set your MongoDB database URL in this env file.
  • Set the port and your database name in the same file:
DB_CONNECTION=mongodb://127.0.0.1:27017
DB_NAME=shop
PORT=3000
  • Run
npm start

and go to http://localhost:3000/ and you should be good to go!