Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/innei-template/nest-drizzle-authjs
A Nest.js Boilerplate Using Drizzle + Postgres and integrates Auth.js.
https://github.com/innei-template/nest-drizzle-authjs
Last synced: 4 months ago
JSON representation
A Nest.js Boilerplate Using Drizzle + Postgres and integrates Auth.js.
- Host: GitHub
- URL: https://github.com/innei-template/nest-drizzle-authjs
- Owner: innei-template
- License: mit
- Created: 2023-09-15T16:12:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-15T11:29:36.000Z (5 months ago)
- Last Synced: 2024-07-16T08:05:12.600Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.28 MB
- Stars: 16
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nestjs - NestJS Drizzle Auth.js - A Nest.js Boilerplate Using Drizzle + Postgres and integrates Auth.js. (Resources)
README
# Nest Drizzle + Auth.js
A Simple Nest.js Template Using Drizzle + Postgres, Auth.js.
## Demo
![CleanShot 2024-07-14 at 10 07 03](https://github.com/user-attachments/assets/7f545e8e-b5f5-4350-91f5-b0852cbc6f53)## Getting Started
Clone this project. Install the dependencies using pnpm. Copy the example environment variables.
```sh
git clone https://github.com/innei-template/nest-drizzle.git
cp .env.template .env
pnpm i
```## Configure Auth.js
The configuration is located at `/apps/core/src/modules/auth/auth.config.ts` Please change your desired Provider here, GitHub OAuth is used by default.
`AUTH_SECRET` is a 64bit hash string, you can generate by this command.
```
openssl rand -hex 32
```### License
2024 © Innei, Released under the MIT License.
> [Personal Website](https://innei.in/) · GitHub [@Innei](https://github.com/innei/)