Skip to content

RobPruzan/nextjs-13-startup

Repository files navigation

NextJS 13 Startup Repository

This repo is designed to help you get started quickly with a new project using the NextJS 13 app dir with prisma, and next-auth configured.

Prerequisites

Ensure that you have Node.js (v16 or higher) and npm (v7 or higher) installed on your system. You can check your current versions by running the following commands:

node -v
npm -v

Installation

  1. Select "Use this template" to start a new project

image

  1. Clone and enter the repo
git clone <repo-url>
cd <repo-name>
  1. Install the required dependencies:
npm install

Configuration

  1. Rename the .env.example file to .env:
mv .env.example .env
  1. Obtain the necessary credentials for authentication and database setup, and update the .env file accordingly. You'll need to provide the following:
  • Client IDs and secrets
  • Database URLs

Database Setup

  1. Run the Prisma migration to set up the database schema:
npx prisma migrate dev
  1. Generate prisma client
npx prisma generate

Running the Development Server

  1. Start the development server on port 3000:
npm run dev
  1. Open your browser and navigate to http://localhost:3000 to view your NextJS 13 application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published