- Clone repository
- Go to the
nodejs-crud-api-solution
branch - Run
npm i
npm run start:dev
- run app in development modenpm run start:prod
- run app in production modenpm run start:multi
- run app with cluster APInpm run test
- run tests
- Run server
npm run start:dev
- Run GET request with
http://localhost:4000/api/users
. Receive status 200 and empty array - Run POST request with
http://localhost:4000/api/users
and body{ "username": "Boris", "age": 33, "hobbies": ["reading", "programing"] }
Receive status 201 and the user with the fields + id - Run PUT request with
http://localhost:4000/api/users/id
and body{ "username": "Boris Max", "age": 35, "hobbies": ["reading", "programing", [swimming]] }
Receive status 200 and the user with updated fields + id - Run Delete request
http://localhost:4000/api/users/id
. Receive status 204