rest-api-node-typescript
RESTful API with node, express, typescript and jest!
API with following requirements in mind:
- Handle CRUD (create, read, update, delete) on resources (posts, comments, users, roles, permissions)
- Access to the API will be secured with JWT auth + RBAC (Role-based access control)
- Data will be returned in JSON format
- All requests will be logged to the console
It is a great starting point for blogging platform.
Technologies used:
- Typescript
- Express.js
- Sequelize
- JWT
- jest
- codecov
Setup
- Install dependencies
npm install or yarn
- Build your api
npm run build or yarn build
- Start your api
npm run start or yarn start
Development
npm run test or yarn test
//watch mode
npm run test:watch or yarn test:watch
Credits
Big thanks to Ryan Smith and his introduction to (3 layer architecture)[https://medium.com/@ryansmith/3la-introduction-b45219e323d8]