8. Autocomplete Backend - rolling-scopes-school/RS-Short-Track GitHub Wiki

Folder Name Branch Coefficient
autocomplete-be autocomplete-be 0.8

Autocomplete BackEnd

Your task is to implement a backend for your auto-complete function. Backend should implement following api:

GET /?complete=java

as response expected to get all suggestions for java

Requirements:

  1. You are not allowed to use any framework to work with HTTP server (express/koa/sails)
  2. Response must be a valid JSON with a valid contentType header.
  3. All uknown URLs must return 404
  4. You must use cities.json as a data for engine.
  5. You are only allowed to change the export statement (if required) in your original autocomplete.
  6. Usage of TS is required

Extras:

  1. HTTP cache headers (static) +5pts
  2. HTTP cache headers (dynamic, last modified changes when cities.json changes) +30pts
  3. Deployment (somewhere, link in PR) +5pts