Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apgapg/express-routing-controllers-demo

Express Routing Controller npm demo
https://github.com/apgapg/express-routing-controllers-demo

expressjs routing routing-controller

Last synced: 7 days ago
JSON representation

Express Routing Controller npm demo

Awesome Lists containing this project

README

        

# Express Routing Controller NPM demo

This project demonstrates on usage of following NPM packages:

1. [routing-controllers](https://www.npmjs.com/package/routing-controllers)
2. [class-validator](https://github.com/typestack/class-validator)
3. [class-transformer](https://github.com/typestack/class-transformer)
4. [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken)
5. [redis](https://www.npmjs.com/package/redis)
6. [ExpressJs](https://expressjs.com/)

## Key Highlights

1. Uses custom error handler
2. Uses nodemon for LIVE reload
3. Uses auto request validators
4. Uses JWT for authentication
5. Uses Redis cache for token blacklisting

## Getting Started

1. This project uses [ExpressJs](https://expressjs.com/).
2. Learn about [routing-controllers](https://www.npmjs.com/package/routing-controllers) library for making route creation and handling easy
3. Install redis cache to make project work
4. Start redis server by `redis-server`
5. Start debugging by running `npm run dev:debug`