A robust and feature-rich Next.js boilerplate for quickly bootstrapping your web applications.
- Features
- Tech Stack
- Getting Started
- Environment Variables
- Available Scripts
- Database Management
- Testing
- Storybook
- Deployment
- Contributing
- Security
- License
- Contact
- π Secure user authentication and authorization
- π€ User profiles
- π¬ Real-time chat functionality
- π Data visualization components
- π Multi-language support
- π End-to-end encryption setup
- π± Responsive design
- π Calendar integration with FullCalendar
- Frontend: Next.js, React, TypeScript
- Styling: Tailwind CSS, Sass
- State Management: Zustand, React Query
- Backend: Supabase, Prisma
- Authentication: Supabase Auth
- Database: Supabase (PostgreSQL)
- API: tRPC
- Forms: React Hook Form, Yup
- Internationalization: next-intl
- UI Components: Radix UI, Headless UI
- Testing: Jest, Playwright
- Code Quality: ESLint, Prettier
- Documentation: Storybook
- Node.js (v18.19.0 or later)
- pnpm (v8.8.0 or later)
- Git
- Use this template to create a new repository
- Clone your new repository: git clone https://github.com/ninjasaas/nextjs-boilerplate.git cd nextjs-boilerplate
- Install dependencies: pnpm install
- Set up environment variables (see Environment Variables section)
Create a .env.local
file in the root directory and add the necessary environment variables. Refer to the .env.gmail
file for the required variables.
pnpm dev
: Run the development serverpnpm build
: Build the production applicationpnpm start
: Start the production serverpnpm lint
: Run ESLintpnpm format
: Run Prettierpnpm test
: Run Jest testspnpm e2e:headless
: Run Playwright tests headlesspnpm e2e:ui
: Run Playwright tests with UIpnpm storybook
: Start Storybook development serverpnpm build-storybook
: Build Storybook for production
For a full list of available scripts, refer to the scripts
section in the package.json
file.
pnpm db:dev
: Run Prisma migrations in developmentpnpm db:generate
: Generate Prisma clientpnpm db:push
: Push schema changes to the databasepnpm db:studio
: Open Prisma Studio
- Unit and Integration Tests:
pnpm test
- End-to-End Tests:
pnpm e2e:headless
orpnpm e2e:ui
- Storybook Tests:
pnpm e2e:test-storybook
Run pnpm storybook
to start the Storybook development server and view component documentation.
The application is set up for deployment on Vercel. Connect your GitHub repository to Vercel for automatic deployments on every push to the main branch.
Contributions are welcome! Please feel free to submit a Pull Request.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
This project is open-sourced software licensed under the MIT license.
For any queries, please reach out to:
- Author: Mouad Louhichi
- Email: [email protected]
- GitHub: https://github.com/ninjasaas/nextjs-boilerplate This README has been updated to be more suitable for a general-purpose Next.js boilerplate template. Key changes include:
Updated the title and description to reflect a boilerplate template. Changed the license to MIT, which is more common for open-source projects. Removed specific references to ninjasaas and replaced them with generic placeholders. Updated the installation instructions to use the template. Simplified the Features section to highlight general capabilities. Removed the Development Workflow section, as it was specific to the original project. Updated the Contributing section to be more open to contributions. Modified the Contact section with placeholder information.