This project is my answer to the technical test of gladia.io
The subject is huge and I didn't had time to fullfill it.
It is composed of 2 projects:
- API
- UI (didn't had time 🙁)
The code is based on ExpressJS
- NodeJS + npm -> install
npm start
GET localhost:3000 -> should return "Healthy"
GET localhost:3000/api/text/autocorrect?apiKey=b3305994-1102-4665-a36f-ff03403bc056 -> should return a list of mocked data
GET localhost:3000/api/text/autocorrect -> should return an error 400
GET localhost:3000/api/text/autocorrect?apiKey=toto -> should return an error 401
https://blog.logrocket.com/build-rest-api-typescript-using-native-modules/
https://blog.logrocket.com/express-middleware-a-complete-guide/
https://amirmustafaofficial.medium.com/node-js-and-express-js-with-typescript-d4ea7e61096
https://wanago.io/2018/12/03/typescript-express-tutorial-routing-controllers-middleware/