An open API service indexing awesome lists of open source software.

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.

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).