Using TypeORM version 3 for ORM, this template is implemented to perform Google authentication for all resources.
Name | Version |
---|---|
TypeORM | 0.3.20 |
Google Auth Library | 9.9.20 |
Class Validator | 9.9.20 |
uuid | 9.0.1 |
The description regarding authentication is written in middleware > auth.middleware.ts. When a request is made to the API, authentication is first performed here using the id_token issued by Google's auth server.
First, plesa add entity and build
npm run typeorm migration:generate src/migrations/<migration name>
npm run typeorm migration:run