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
- Host: GitHub
- URL: https://github.com/cr2007/f28wp-lab3
- Owner: cr2007
- Created: 2021-11-22T19:00:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T15:21:21.000Z (over 3 years ago)
- Last Synced: 2025-03-15T00:22:57.395Z (9 months ago)
- Topics: express, f28wp, mysql, nodejs, nodemon, npm, web-programming, web-programming-hw
- Language: JavaScript
- Homepage:
- Size: 1.71 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
F28WP Lab 3
## Course: Web Programming ([F28WP](https://www.hw.ac.uk/documents/pams/202122/F28WP_202122.pdf))
### 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
### 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
```