Skip to content

Kickstart your Next.js projects with this boilerplate featuring MongoDB, Auth.js, Stripe and Vitest.

Notifications You must be signed in to change notification settings

yogendrarana/next-mongo-boilerplate

Repository files navigation

Next.js 14+ Boilerplate with MongoDB, Auth.js, Stripe, and Vitest

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.

Features

  • 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.

Getting Started

Prerequisites

  • Node.js installed (v18.x or higher)
  • MongoDB database

Installation

  1. Clone the repository:
    git clone https://github.com/yogendrarana/nextjs-boilerplate.git
    cd nextjs-boilerplate
    
  2. Install dependencies
    yarn
    
  3. Setup environment variables
    AUTH_SECRET=yourauthsecret
    

Contributing

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.

License

This project is licensed under the MIT License.

About

Kickstart your Next.js projects with this boilerplate featuring MongoDB, Auth.js, Stripe and Vitest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages