Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rest-api-node-typescript

CircleCI codecov

RESTful API with node, express, typescript and jest!

API with following requirements in mind:

  1. Handle CRUD (create, read, update, delete) on resources (posts, comments, users, roles, permissions)
  2. Access to the API will be secured with JWT auth + RBAC (Role-based access control)
  3. Data will be returned in JSON format
  4. 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

  1. Install dependencies
npm install or yarn
  1. Build your api
npm run build or yarn build
  1. 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]

About

RESTful API with node, express, typescript and jest

Resources

License

Releases

No releases published

Packages

No packages published