Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyr33x/nextauth-prisma
NextAuth + Prisma Boilerplate
https://github.com/pyr33x/nextauth-prisma
authjs nextauth nextjs postgres prisma
Last synced: about 15 hours ago
JSON representation
NextAuth + Prisma Boilerplate
- Host: GitHub
- URL: https://github.com/pyr33x/nextauth-prisma
- Owner: Pyr33x
- License: mit
- Created: 2024-08-06T12:22:53.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T12:48:33.000Z (3 months ago)
- Last Synced: 2024-08-06T14:24:22.766Z (3 months ago)
- Topics: authjs, nextauth, nextjs, postgres, prisma
- Language: TypeScript
- Homepage: https://nextauth.pyr33x.ir
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting Started
This is a boilerplate template for [Next-Auth@Beta](https://authjs.dev/getting-started/installation?framework=next.js) + [Prisma Adapter](https://authjs.dev/getting-started/adapters/prisma).
## Installation
Clone the repo first using:
```bash
git clone https://github.com/pyr33x/nextauth-prisma.git
```Install the dependencies using:
```bash
npm install / yarn install / pnpm install
```> Default pacakge manager is `pnpm`
## Configuration
Follow the steps below to configure the project:
1. Rename `.env.example` to `.env` and fill the required values.
2. After setting up the database, you can run the generate command to create the prisma client.```bash
pnpm generate
```3. Run the migration command to create the database tables.
```bash
pnpm migrate
```## Development
Run the development server:
```bash
pnpm dev
```## Production
Build the application for production:
```bash
pnpm build
```Serve the production build:
```bash
pnpm start
```## License
This project is licensed under the MIT License.