Create a simple node service that provides provides some endpoints to allow the listing and updating of a list of countries and their population. This task should take 2-3 hours but don't worry if you aren't able to complete all items, just make sure to show your understanding of the core technologies we use.
- Fork this repo
- Create an endpoint that allows the listing of the countries using the method from
src/api/country.ts
- Create an endpoint to fetch all of the countries sorted by their population
- Allow the populations to be updated
- Allow countries to be updated
- Allow countries to be deleted
- Add authentication using the
src/api/authenticate.ts
method - When you're done commit your code and create a pull request
Bonus points for
- Storing the data in Redis
- Allowing the app to be run from a docker-compose file
A basic project outline has been created to help you get started quickly but feel free to start from scratch if you have a preferred setup.
Feel free to use the internet including Google and Stackoverflow to help with the task
Please just ask.
Good luck and thanks for taking the time to complete this task!