This repository is an academic work (coursework) of the Web Technology module taught at Westminster International University in Tashkent in Business Information Systems course level 4.
Repository: https://github.com/00012878/WT_CW2
Hosted on: https://aerial-obtainable-session.glitch.me/
Fully functioning web application where a user can perform CRUD operations.
There is no actual database, and the app imitates working with database by performing read and write operations over data/data.json file that stores actual data.
index.js is a server-side js that runs localhost server.
CSS is stored in public/ folder and it is encouraged to store additional client-side js, css and media files in that folder accordingly.
routes/students.js handles route requests.
All rendering templates are stored in views/ folder.
Back-end is built with the help of Express.
To make the app dynamic, Pug is used.
- Make sure NodeJS and npm is installed.
- Clone the repository:
git clone https://github.com/00012878/WT_CW2.git - Navigate to the downloaded repository and install dependencies:
npm i - Serve the app on localhost:
node index.jsornpm run start - (optional) If a user wants to debug and make changes to the app,
npm run debugwill serve localhost with auto-reloading ofindex.jswhen changes to the project are made.
- Express -- for serving localhost
- Pug -- for dynamic rendering of webpages
- Nodemon -- for auto-reloading of local server