This is a boilerplate for a Next.js 14 app with user management, login, permissions, and more. It uses TypeScript, Tailwind CSS, Shadcn UI, Prisma, Postgres, React Table and React Query. Contributions welcome under the MIT License.
The NEXTjs Boilerplate is a project template for building web applications using Next.js 13. It includes several key features such as TypeScript, Tailwind CSS, DaisyUI, Prisma, and Postgres, React Query. It also provides functionality for login, user management, user roles, user permissions, user profile, forgot password, reset password, and nodemailer.
To use this boilerplate, follow these steps:
npm install..env.local file in the root directory of the project..env.local file, define the following variables:DB_USER=your_postgres_user
DB_PASSWORD=your_postgres_password
DB_NAME=your_database_name
SMTP_HOST=your_smtp_host
SMTP_USER=your_smtp_user
SMTP_PASSWORD=your_smtp_password
Make sure to replace the placeholder values with your own Postgres credentials, as well as your SMTP credentials.
nanoid function by running the command npx prisma migrate create --name nanoid.nanoid function into it.npx prisma migrate dev.npm run dev.To seed data, make a GET request to http://localhost:3000/api/seeds?secret=ts&option=reset in your browser or using a tool like Postman. This will create default user roles and permissions and create a default admin user with the email info@ahmedibra.com and password 123456.
The NEXTjs Boilerplate is a complete project template for building web applications with Next.js 13. It offers a range of features including TypeScript, Tailwind CSS, DaisyUI, Prisma, and Postgres, React Query. Users can easily set up a development environment by cloning the repository and following the installation instructions. The boilerplate provides functionality for user management, password reset, and email sending using Nodemailer. Contributions to the project are also welcome. The boilerplate is licensed under the MIT License.