https://github.com/ivomiyashiro/auth-api
A versatile REST API for authentication featuring local, GitHub, and Google sign-up options.
https://github.com/ivomiyashiro/auth-api
0auth2 nestjs prisma
Last synced: 10 months ago
JSON representation
A versatile REST API for authentication featuring local, GitHub, and Google sign-up options.
- Host: GitHub
- URL: https://github.com/ivomiyashiro/auth-api
- Owner: ivomiyashiro
- Created: 2024-04-21T04:04:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T11:54:10.000Z (about 2 years ago)
- Last Synced: 2025-03-25T10:44:58.088Z (about 1 year ago)
- Topics: 0auth2, nestjs, prisma
- Language: TypeScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ Auth API
A versatile REST API for authentication featuring local, GitHub, and Google sign-up options.
## ๐ Crafted with
โ
Nest.js
โ
Prisma
โ
Pactum (E2E Testing)
## ๐ Features
โญ๏ธ JWT access and refresh tokens
โญ๏ธ Google OAuth
โญ๏ธ Github OAuth
โญ๏ธ Private and public routes
## ๐ Installation
```bash
$ pnpm install
```
## ๐ .env
Create a .env file and fill it following the structure provided in the .env.template file for the proper functioning of the app.
## ๐ Running the app
```bash
# Make sure you have docker running
$ pnpm db:dev:up
# watch mode
$ pnpm start:dev
# production mode
$ pnpm run start:prod
```
## ๐งช Test
```bash
# Make sure you have docker running
$ pnpm db:test:up
# e2e tests
$ pnpm test:e2e
```
## License
Nest is [MIT licensed](LICENSE).