TypeScript REST API (Pt 2) Error Handling Middleware, API Logging & More

Опубликовано: 20 Ноябрь 2021
на канале: Kris Foster
6,609
116

In this video we're continuing with our TypeScript REST API. We're going to set up developer mode with hot reloading (nodemon), improve routing with async/await, add middleware to handle errors, set up app configuration (.env) & set up API logging (morgan).

Hot reload (nodemon) - 1:12
Improving routing - 3:50
Custom API error handling middleware - 7:35
App Configuration - 12:10
API logging (morgan) - 19:10

Full Code: https://github.com/kriscfoster/typesc...
Code Difference from part 1: https://github.com/kriscfoster/typesc...

Install NodeJS: https://nodejs.org/en/
Install Docker: https://docs.docker.com/get-docker/
TypeORM: https://typeorm.io/#/