This is the source code for the tutorial Nest Authentication with OAuth2.0. This is the 6th and extra part on a 5 part series, where we will build a production level NestJS OAuth2 service.
This contains the code for a fastify based REST Authentication API, with local and external OAuth2.0 authentication.
- Install the dependencies:
$ yarn install
- Create a .env file with all the fields equal to the example.
- Run the app in development mode:
$ yarn start:dev
All Unit tests:
$ yarn test
Individual Unit test:
$ yarn test service-name.service.spec.ts
Coverage:
$ yarn test:cov
E2E tests:
$ yarn test:e2e
The code of this tutorial is licensed under the GNU Lesser General Public License v3.0. See the Copying and Copying Lesser files for details.