An open API service indexing awesome lists of open source software.

https://github.com/cr2007/f28wp-lab3

Marked Lab 3 in Web Programming (F28WP) Course
https://github.com/cr2007/f28wp-lab3

express f28wp mysql nodejs nodemon npm web-programming web-programming-hw

Last synced: 6 months ago
JSON representation

Marked Lab 3 in Web Programming (F28WP) Course

Awesome Lists containing this project

README

          


F28WP Lab 3


## Course: Web Programming ([F28WP](https://www.hw.ac.uk/documents/pams/202122/F28WP_202122.pdf))



Node.js


npm


MySQL


Nodemon


express

### Lab 3: Node.js and MySQL

---

### Index

- [Running the File](#running-the-file)
- [File Structure](#file-structure)

This lab uses [Node.js](https://nodejs.org/en/) 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](https://nodejs.org/en/) installed and have the packages installed on your device.

To run the server,
- Download the [Source Code](https://github.com/cr2007/F28WP-Lab3/archive/refs/heads/master.zip)
- Open the Terminal
- Type `npm run dev`

The server will then run on [http://localhost:3000](http://localhost:3000).

Packages used for this Lab


Back to Top ↥

### File Structure
```
├── README.md
├── controllers
│ ├── clientController.js
│ └── productController.js
├── db
│ ├── clientDAO.js
│ ├── dbQuery.js
│ └── productDAO.js
├── models
│ └── entities.js
├── node_modules
│ └──
├── 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
```


Back to Top ↥