- Clone the repository
npm install- Check if application is starting (
npm run dev).- Latest Node 18
- Run tests (
npm run test) to check if they are running.
Let's imagine that during the team discussion you agreed on the final solution for the infection tracker:
- Apps will internally store a list of userIds the user encountered, together with a timestamp
- the server will store a list of all infected people
- Apps can ask the server to return ids of all infected people and then do the matching on the client side.
- Apps can inform the server about a new infection.
Please make a code review of the currently implemented solution.
Add new endpoint to fetch the list of infected people. The period should be provided by the App.
In the project directory, you can run:
To start the app in dev mode.
Open http://localhost:3000 to view it in the browser.
Open http://localhost:3000/documentation to view Swagger UI.
Run the test cases.