This is a boilerplate project for building a Next.js application using MongoDB, Auth.js, and Vitest for testing. It provides a basic structure to get you started quickly with these technologies.
- MongoDB: Document based non relational database.
- Auth.js: A library to handle authentication.
- Vitest: Fast unit test framework powered by Vite.
- ESLint: A linting utility for JavaScript/TypeScript code style and quality.
- Node.js installed (v18.x or higher)
- MongoDB database
- Clone the repository:
git clone https://github.com/yogendrarana/nextjs-boilerplate.git cd nextjs-boilerplate
- Install dependencies
yarn
- Setup environment variables
AUTH_SECRET=yourauthsecret
Feel free to submit issues, fork the repository, and send pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.