/shopping-cart

This repository contains the code for an e-commerce website built using Node.js and the Handlebars (hbs) template engine. The website features a shopping cart where users can add items and proceed to checkout. The site is connected to a MongoDB database for storing product information and user data.

Primary LanguageHandlebars

E-Commerce Website

This repository contains the code for an e-commerce website built using Node.js and the Handlebars (hbs) template engine. The website features a shopping cart where users can add items and proceed to checkout. The site is connected to a MongoDB database for storing product information and user data.

to run the service you will need to install all of the package include in package.json

npm install

After install all the package needed, you will need to create a new MongoDB collection,

to create a mongodb collection :

https://www.mongodb.com/atlas/database

(optional) if you want the website to send you a line message for summary the order, you will need to create a group chat and paste a token in the env file. you can get your line notify token here

https://notify-bot.line.me/en/

next paste you mongodb collection url to the .env file

#SET YOUR DATABASE & LINE API HERE

MONGO_URL = "PASTE_YOUR_MONGODB_URL"
LINE_API = "PASTE_YOUR_LINENOTIFY_TOKEN"

finally you will need to insert information into the Products table, You can use my dummy data by cd into seed directory and enter the command

node product-seeder.js

To run the website type in the command :
npm start

or

node app.js

Snapshot of the website : img1 img2 img3 img4 img9 img5 img6 img7 img8 img10 img11 img12 img13