This is the Camplight pair coding task. You and the interviewer are going to work together on it to make it better.
- If you use VSCode: install LiveShare plugin
- IF you use another IDE: install https://mob.sh/
The intention is to work in a true pair-programming manner.
-
Create a new
data.json
file with the following contents:{ "users": [ { "id": "1", "name": "Alice" }, { "id": "2", "name": "Bob" } ] }
-
Run
npm i
-
Run
npm start
-
Do one of the following requests to test the endpoints
# Get all users curl http://localhost:3000/users # Get health check curl http://localhost:3000/health # Get user by ID curl http://localhost:3000/users/1