This README.md file provides an overview of the assignments functionality implemented for term project Li Xu- CS602 S2 2024. A shopping cart application for a grocery online store, a customer will be able to add products into cart and checkout, an admin can manage a list of products and view/modify the customer's orders.
Video Presentation for demo and code walkthrough here.
- JavasScript
- Express.js
- Handlebars.js
- mongoose.js
- Node.js
- Bootstrap CSS 4.X
- Node.js installed on your machine. You can download and install Node.js from here.
-
Clone the repository:
git clone https://github.com/lest-xu/bucs602termp.git
-
Navigate to the project directory:
cd yourrepo/bucs602termp
-
Install the libraries:
npm install
-
Run the JavasSript code:
node server.js
Then open the link http://localhost:3000 in your browser.
The project directory contains the following files:
bucs602a1/
constollers/
── adminController.js
── apiController.js
── cartController.js
── storeController.js
node_modules/
public/
images/
── store-logo.gif
javascripts/
── clickActions.js
stylesheets/
── bootstrap.css
── styles.css
routes/
── index.js
views/
customer/
── viewCustomerDetails.handlebars
layouts/
── main.handlebars
order/
── displayProductsView.handlebars
── editProductView.handlebars
product/
── addProductView.handlebars
── deleteProductView.handlebars
── editProductView.handlebars
── viewProductDetails.handlebars
── 404.handlebars
── cartView.handlebars
── displayAdminView.handlebars
── displayStoreView.handlebars
── orderHistoryView.handlebars
── connection_test.js
── credentials.js
── customerDB.js
── orderDB.js
── package-lock.json
── package.json
── productDB.js
── README.md
── server.js