This project was done as a home assignment with almost no knowledge in NodeJS before this assignment.
This tool serves as a backend service that provides APIs to manage users DB.
It offers 3 APIs to do so.
- GET /users
Used to get a list of all current users in the system. - POST /users
Used to add a new user to the system. - DELETE /users/:user_id
Used to delete a user from the system.
The tool can be installed in two ways:
- Locally
In order to run the project locally follow these steps:
$ npm install
$ npm run start
- Inside a docker container:
In order to run it inside a docker container you'll need to have Docker Desktop client installed, please see: https://docs.docker.com/desktop/
After docker installed all you need to do is run:
$ docker-compose up -d