Skip to content

Sample starter template for REST with TypeScript, NodeJS, Express, Typeorm, Validator

Notifications You must be signed in to change notification settings

Ta0uf19/typescript-express-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter template to build Rest

TypeScript + NodeJS + TypeOrm + ExpressJS + Validator Middleware

Structure

/app
	/controllers (Controllers of the app)
	/core (Core of starter template)
	/middlewares (Middlewares for the routes of the app)
	/routes (Routes for Controllers of the app)
	/models (Models configuration for use)
	/repository (Custom queries)
	/App.ts (Server configuration)
	/Router.ts (Config file for Routing)

tsconfig.json (File configuration typescript)
tslint.json (File configuration rules typescript)
Entry.ts (Main file to start the app)

Usage

In Development mode, the express app is started with nodemon for automatic refresh when changes are made.

npm run dev

Todo

  • TypeORM
  • Validator Middleware
  • Configuration file
  • Swagger Docs
  • Release bundle
  • JWT Middleware
  • Dockerfile
  • Generator code (Router,Controller)

License

Usage is provided under the MIT License. See LICENSE for the full details.
Copyright © 2020, Taoufik Tribki