Code challenge for Namshi
To run the solution using docker, run:
docker-compose up
- node 8 or 9
- mysql or mariadb
- mocha (for running tests)
npm i
rename .env.sample
to .env
and update it to fit your database configuration than run:
npm start
Create a database for test and put its name in test/config.js
along with db server config and run:
npm test