Course: Web Programming (F28WP)
This lab uses Node.js and to run server-side programming.
We were tasked with developing basic functions for an online shopping application.
Make sure you have Node.js installed and have the packages installed on your device.
To run the server,
- Download the Source Code
- Open the Terminal
- Type
npm run dev
The server will then run on http://localhost:3000.
Packages used for this Lab
├── README.md
├── controllers
│ ├── clientController.js
│ └── productController.js
├── db
│ ├── clientDAO.js
│ ├── dbQuery.js
│ └── productDAO.js
├── models
│ └── entities.js
├── node_modules
│ └── <all node packages>
├── public
│ ├── hwu.css
│ ├── hwu.png
│ └── index.html
├── routes
│ └── apis.js
├── services
│ ├── clientServices.js
│ └── productServices.js
├── views
│ ├── article.ejs
│ ├── catalogue.ejs
│ ├── contacts.ejs
│ ├── footer.ejs
│ ├── header.ejs
│ ├── index.ejs
│ ├── login.ejs
│ ├── loginFailed.ejs
│ ├── postLogin.ejs
│ ├── postRegister.ejs
│ └── register.ejs
├── app.js
├── package-lock.json
├── package.json
└── sales.sql