NEXTJS-NEXTAUTH-TEMPLATE

This repository provides a template for integrating Next.js with NextAuth.js for authentication. Below is a guide to get started with the project.

license last-commit repo-top-language repo-language-count

Developed with the software and tools below.

JavaScript PostCSS YAML sharp React
ESLint TypeScript Prisma Docker JSON


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

Getting Started

Prerequisites

  • Node.js
  • npm, yarn, pnpm, or bun
  • Docker (optional for containerized setup)

Installation

  1. Clone the repository:

    git clone https://github.com/guillaumefalvet/nextjs-nextauth-template.git
    cd nextjs-nextauth-template
  2. Install dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
    # or
    bun install

Configuration

  1. Copy the example environment file and update the variables:

    cp .env.example .env
  2. Update prisma/schema.prisma with your database configuration.

Running the Application

  1. Run the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    # or
    bun dev
  2. Open http://localhost:3000 in your browser.

Using Docker

  1. Build the Docker image:

    docker-compose build
  2. Start the containers:

    docker-compose up

Learn More

Contributing

Feel free to submit issues and pull requests to improve the template.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions, reach out via GitHub issues.