- Node version 16.17.1 or later
- npm is required to run the server
- implemented using Node.JS and MySQL
Clone repository from https://github.com/aungkhantkyaw9/d3hiring-nodejs-coding-challenge.git
Then, run following:
> npm install
If npm install
encounters conflicting peerDependencies, use following command
> npm install --legacy-peer-deps
When installation finished, open project and create .env
file under root
directory. Then copy data from .env-local
file and paste paste to .env
file
Before starting server, create database named university
in local mysql. Note that if you can't use sequelize
command, install it as global package.
> npm install -g sequelize-cli
After finished, run following commands
> sequelize db:migrate
When finished, start the server using npm start
. Then you can access API by browsing to http://localhost:4000
Run npm test
for unit testing. Overall code coverage is 88%