Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tugascript/nestjs-oauth
Tutorial on how to implement full oauth
https://github.com/tugascript/nestjs-oauth
Last synced: 7 days ago
JSON representation
Tutorial on how to implement full oauth
- Host: GitHub
- URL: https://github.com/tugascript/nestjs-oauth
- Owner: tugascript
- License: lgpl-3.0
- Created: 2023-01-12T18:30:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T13:31:34.000Z (28 days ago)
- Last Synced: 2024-12-23T23:08:13.403Z (13 days ago)
- Language: TypeScript
- Size: 4.31 MB
- Stars: 107
- Watchers: 1
- Forks: 18
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Nest OAuth: Adding Mobile Apps Support
## Intro
This is the source code for the
tutorial [Nest Authentication with OAuth2.0](https://dev.to/tugascript/nestjs-authentication-with-oauth20-adding-mobile-apps-support-13nl).
This is the 6th and extra part on a 5 part series, where we will build a production level NestJS OAuth2
service.### Contents
This contains the code for a fastify based REST Authentication API, with local and external OAuth2.0 authentication.
## Local Setup
1. Install the dependencies:
```bash
$ yarn install
```
2. Create a .env file with all the fields equal to the [example](.env.example).
3. Run the app in development mode:
```bash
$ yarn start:dev
```## Testing
**All Unit tests:**
```bash
$ yarn test
```**Individual Unit test:**
```bash
$ yarn test service-name.service.spec.ts
```**Coverage:**
```bash
$ yarn test:cov
```**E2E tests:**
```bash
$ yarn test:e2e
```## License
The code of this tutorial is licensed under the GNU Lesser General Public License v3.0. See the [Copying](COPYING)
and [Copying Lesser](COPYING.LESSER) files for details.