Skip to content

A streamlined Next.js 14 template equipped with Prisma ORM for database tasks, NextAuth for authentication, and shadcn UI for a refined user experience ready for quick development and effortless deployment.

Notifications You must be signed in to change notification settings

AlxFrst/nextjs14-nextauth-prisma

Repository files navigation

Next.js 14 with Prisma & NextAuth Template 🚀

Description

A robust starter template to build Next.js 14 apps with integrated Prisma ORM and NextAuth for easy authentication, featuring shadcn UI components for a polished UI.

Features 🌟

  • Next.js 14 for cutting-edge React apps
  • Prisma ORM for database management
  • NextAuth for seamless authentication
  • shadcn UI for beautiful, open-source UI components

Installation 🔧

  1. Clone the repository.
  2. Copy .env.example to .env and configure your Google credentials.
  3. Run npm install or pnpm install to install dependencies.
  4. Execute npx prisma generate or pnpm prisma generate to generate Prisma client.

Usage 🏃

Run npm run dev or pnpm run dev to start the development server. Visit http://localhost:3000 to view the app.

Deployment 🌐

After setting up the .env and installing dependencies, deploy your app to a hosting service of your choice.

Project Structure 🗂

An example API route is provided to demonstrate the usage and structure:

  • /src/api/example/route.ts: This file contains a brief example of how to set up an API endpoint in the Next.js environment using the template structure.
  • /src/app/about/page.tsx: This file contains a brief example of how to set up a page in the Next.js environment using the template structure.
  • /src/components/navbar.tsx: This file contains a brief example of how to set up a component in the Next.js environment using the template structure. (Note: this component use Shadcn UI components)

Explore this example to understand how to structure your pages, components, and API routes.

Roadmap ✨

Future updates include:

  • Regular Login System
  • Emailing System for user engagement

Contributing 👥

Contributions are welcome. Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.


Happy coding!

About

A streamlined Next.js 14 template equipped with Prisma ORM for database tasks, NextAuth for authentication, and shadcn UI for a refined user experience ready for quick development and effortless deployment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published