I'm gonna code a RestFul with Express, Typescript
REST: Representational State Transfer API: application programming interface
Prerequisites:
- NodeJS 8+
- npm 3
$ npm install
Env variables in sample file. You can copy and rename it to .env and edit varialbe value with your own value.
Basic mongodb schema: http://learnmongodbthehardway.com/schema/schemabasics
http://learnmongodbthehardway.com/schema/schemabasics/#one-to-many-1-n
https://hackernoon.com/restful-api-designing-guidelines-the-best-practices-60e1d954e7c9
- JWT problems
- Better error handler
- Support swagger docs
- Support multiple language
- Integrate with front end
- Add ci/cd unit test
- Test runner: Jest, Supertest
- Coverage:
npm run coverage
- Unit test:
npm run test