Skip to content

Jodel/Jodel-Backend-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Backend Code Challenge

Welcome!

For this code challenge we would like you to write a simple NodeJS REST API project in express.js framework, and then extend it with some functionalities below.

Adding MongoDB

Write an API endpoint for saving a JSON object in MongoDB. Mongo DB should be running in a Docker Container.

  • Input:
    • JSON Object
  • Output:
    • 200 OK or error code

Write also an API endpoint for getting a list of all previously saved JSON objects filtered by some field’s value, in pages, N objects per page:

  • Input:
    • field’s value
    • page number
  • Output:
    • list of JSON objects (no more than N)

Adding Tests

Write end-to-end test(s) for these 2 endpoints.

Tests should be rerunnable and independent of their execution order. Make sure you test the most tricky cases.

Adding Caching

Start Redis in Docker (same way as Mongo) and implement Redis caching for the second endpoint (get list).

Running everything

Ensure that we're able to setup and run everything with a task runner or a similar tool both locally and in Docker environment. This means we expect to see a Dockerfile and docker-compose.yml files.

How to deliver the results

Fork this repo and once you're done send us a link to a repo with your solution. The result should be your own repository on Github with instructions how to run tests.

About

Jodel's Backend Challenge Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published