Skip to content

A comprehensive Next.js 15 full-stack boilerplate featuring authentication, database ORM, type-safe API, email handling, environment management, theming, and form handling. Perfect for building robust and scalable web applications

License

Notifications You must be signed in to change notification settings

KobeBerv/nextjs-full-stack-boilerplate

Repository files navigation

NextJS Full-stack Boilerplate

A comprehensive Next.js 15 full-stack boilerplate featuring authentication, database ORM, type-safe API, email handling, environment management, theming, and form handling. Perfect for building robust and scalable web applications

This is a Next.js 15 project bootstrapped with create-next-app.

Features

Getting Started

First, clone the repository:

git clone https://github.com/KobeBerv/nextjs-fullstack-boilerplate.git
cd nextjs-fullstack-boilerplate

Then, install the dependencies:

pnpm install

Change the .env.example file to .env:

DATABASE_URL=your_database_url
BETTER_AUTH_SECRET=secret_string
NEXT_PUBLIC_SITE_URL=site_url
SMTP_HOST=smtp_host
SMTP_USERNAME=smtp_username
SMTP_PASSWORD=smtp_password

Generate Prisma client:

pnpm prisma generate

Set up your database:

pnpm prisma db push

This command will create the necessary tables in your database based on your Prisma schema.

pnpm prisma db push

Next, run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing!

Contributing

This is just my idea of the right structure for a full-stack application. Suggestions and contributions are welcome!

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A comprehensive Next.js 15 full-stack boilerplate featuring authentication, database ORM, type-safe API, email handling, environment management, theming, and form handling. Perfect for building robust and scalable web applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published