MMK Test Service.
Description
A microservice based on MMK interview test
Dependencies
- Nodejs 16.13.1
- Postgres 14.1
- Redis
Install Nodejs
Follow the installation guide here
Install Redis
Follow the installation guide here
Install Postgres
Follow the installation guide here
Clone the repository
git clone https://github.com/thebolarin/mmk-test.git && cd mmk-test
Install Nodejs dependencies
From your freshly checked out mmk-test repo, run:
$ npm install
Setup database and schema
* Ensure to have Postgres , Redis & NodeJS (v16.13) installed on Ubuntu.
psql -h HOST -U User -d Database -f PATH_TO_SCHEMA_FILE
Running the app
# development
$ npm run start:dev
# production mode
$ npm start
The app should be accessible through http://localhost:3000/
Testing
# unit tests
$ npm run test