- Source code: https://github.com/netojose/news-api
- Production URL: https://mistho-api.herokuapp.com
- Production docs: https://mistho-api.herokuapp.com/docs
This project works serving API for this another project: https://github.com/netojose/news-site
This project is hosted on Heroku (please be patient on first request, Heroku free accounts put the machine to sleep when inactive).
Minimum requirements! This API requires Node >= 10, Express >= 4 and TypeScript >= 3.
# install dependencies
$ yarn install
# run tests
$ yarn test:unit
# serve in dev mode
$ yarn start:dev
# build for production
$ yarn build
$ yarn start
This was my first contact with Ts.ED, and I liked of the result. I decided to learn something new while creating this challenge, instead of use tools I already familiar with. I could to learn quickly about the framework, and was an awesome experience.
- Write unit tests for testing isolated parts of code, because here I used integration tests (because I would like to test many code with a few tests and make sure everything e2e was working)
- On authentication, create a logout process, puting JWT in a black list.