Task is here.
git clone {repository URL}
npm install
Run the application in development mode
npm run start:dev
Run tests scenarios for API
npm run test
Run the application in production mode
npm run start:prod
Run cluster mode with default load balancer
npm run start:multi
Value of port on which the application is running is stored in .env file, it can be changed
Implemented endpoint: api/users
GET api/users - to get all users
GET api/users/${userId} - to get user by id (uuid)
POST api/users - to create record about new user and store it in database
PUT api/users/${userId} - to update existing user (all fields required)
DELETE api/users/${userId} - to delete existing user from database
username — user's name (string, required)
age — user's age (number, required)
hobbies — user's hobbies (array of strings or empty array, required)
You can use Postman.