sparkidev0x1D/express-ts-api

Repository files navigation

Express TS API

Supports Debugging with vs-code

alt text

Integrated test with Jest and Supertest

alt text

  npm i                   #  Install all the packages 
  npm run dev             #  Running on dev 
  npm run build           #  Builds and transpiles to Javascript 
  npm run debug           #  Debug with chrome 
  npm run test            #  to run test suite 
  npm run test-generate   #  run test suite and generate Coverage Report 

/api - Parent route

 Routes are exported as single instance , which contains all the child routes 
 that will be initiated by the init() method  
- Controller Layer for handling http calls
- Database and other external connections
- helper functions for controllers and data-repository
- middlewares for the express router
- Models required for database operations
-Constructing raw queries for Relational Databases alternatives to models 
- Database  access layer or abstraction layer
- Common response handler for http methods
- Common Route directory  
- API test cases  

About

boilerplate code for express app with TS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •