Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.1 KB

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.