This repository provides a template for integrating Next.js with NextAuth.js for authentication. Below is a guide to get started with the project.
Developed with the software and tools below.
## Features
- Next.js: Framework for React applications.
- NextAuth.js: Authentication for Next.js applications.
- Prisma: ORM for database interactions.
- TypeScript: Typed JavaScript.
- Tailwind CSS: Utility-first CSS framework.
- Docker: Containerization for development and deployment.
- Node.js
- npm, yarn, pnpm, or bun
- Docker (optional for containerized setup)
-
Clone the repository:
git clone https://github.com/guillaumefalvet/nextjs-nextauth-template.git cd nextjs-nextauth-template
-
Install dependencies:
npm install # or yarn install # or pnpm install # or bun install
-
Copy the example environment file and update the variables:
cp .env.example .env
-
Update
prisma/schema.prisma
with your database configuration.
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open http://localhost:3000 in your browser.
-
Build the Docker image:
docker-compose build
-
Start the containers:
docker-compose up
Feel free to submit issues and pull requests to improve the template.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions, reach out via GitHub issues.