- Node v20.9.0 (https://nodejs.org/en/download)
- Mysql (https://dev.mysql.com/downloads/installer/)
- clone the repo
- run "npm install" to install packages
- node --watch index.js --serverPort=3000 --dbusername=root --dbpassword=mpxfactor --dbname=quiz --dev=true
- node index.js --serverPort=3000 --dbusername=root --dbpassword=mpxfactor --dbname=quiz --dev=true --secure=true
- serverPort => give port number where server should run.
- dbusername => give proper dbms username.
- dbpassword => give proper dbms password.
- dbname => give proper database name.
- if dev=true => it deletes all the data from the database and creates admin user and seeds the database with example values.
- if secure = true => to work in chrome (because that's how it works in chrome, we will not be able to set cookie if not set to true.)
- if secure = false => it works in thunder client.
- username => "nanu"
- email => "wtf@gmail.com"
- password => "neenu"
- http://localhost:3000/rest-api/
- give proper port number
- cd to clientexample and run live server (runs on ports 5500, 3000, if you use any you will get cors error)
- Add errors properly.
- Add Swagger docs
- user route
- question route
- choice route
- userAnswer route
- Endpoints
- No fucking idea what to do for results.
- Refactor code
- Migrate project to typescript
- Create Single executable file.