Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cr2007/F28WP-Lab3

Repository files navigation

F28WP Lab 3

Course: Web Programming (F28WP)

Lab 3: Node.js and MySQL


Index

This lab uses Node.js and to run server-side programming.
We were tasked with developing basic functions for an online shopping application.


Running the File

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

File Structure

├── 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