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.
- 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
- Clone the repository.
- Copy
.env.example
to.env
and configure your Google credentials. - Run
npm install
orpnpm install
to install dependencies. - Execute
npx prisma generate
orpnpm prisma generate
to generate Prisma client.
Run npm run dev
or pnpm run dev
to start the development server. Visit http://localhost:3000 to view the app.
After setting up the .env
and installing dependencies, deploy your app to a hosting service of your choice.
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.
Future updates include:
- Regular Login System
- Emailing System for user engagement
Contributions are welcome. Please read CONTRIBUTING.md
for details on our code of conduct and the process for submitting pull requests.
Happy coding!