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:
- You are not allowed to use any framework to work with HTTP server (express/koa/sails)
- Response must be a valid JSON with a valid
contentType
header. - All uknown URLs must return 404
- You must use
cities.json
as a data for engine. - You are only allowed to change the export statement (if required) in your original autocomplete.
- Usage of TS is required
Extras:
- HTTP cache headers (static) +5pts
- HTTP cache headers (dynamic, last modified changes when cities.json changes) +30pts
- Deployment (somewhere, link in PR) +5pts