Next.jsReactStarter

nextjs-pages-template — Next.js Starter Template

By xi-Rick

A starter template based on the Next.js 13 pages directory, integrating NextUI, Tailwind CSS, TypeScript, MongoDB, and Next-PWA. The README provides instructions for cloning, environment variable configuration, and deployment to Vercel/Netlify.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-14View source

What stands out

A quick read of the recorded project description.

01

Based on Next.js 13 and uses the pages directory structure

02

Integrates NextUI (v2) components with Tailwind CSS and Tailwind Variants

03

Uses TypeScript and Framer Motion, with theme switching supported via next-themes

04

Connects to MongoDB via the MongoDB Node.js driver; the README requires configuring MONGODB_URI

05

Integrates Next-PWA to configure Progressive Web App features

06

The README provides Vercel and Netlify deployment entry points and environment variable reminders

Template Details

This is a starter template for Next.js 13, using the pages directory structure to organize pages. The README explains that it integrates NextUI (v2) for UI components, Tailwind CSS and Tailwind Variants for styling, TypeScript for typing, Framer Motion for animations, next-themes for theme switching, the MongoDB Node.js driver for data persistence, and Next-PWA for configuring PWA features.

For the workflow, the README provides steps to clone the repository, install dependencies, prepare MongoDB (local or MongoDB Atlas), copy .env.local.example to .env.local and set MONGODB_URI, and start the development server with npm run dev or yarn dev. After starting, the terminal will indicate whether the MongoDB connection was successful, which can be used to determine if the environment variables are correct. For deployment, the README provides entry points for Vercel and Netlify, and reminds that when importing the project on Vercel, the values in Environment Variables must be configured to match those in .env.local.

The README does not provide further details on page structure, route lists, example pages, component usage, testing, or performance, nor does it specify environment variables other than MONGODB_URI. The template is released under the MIT license.

Next.jsStarter

Is it right for your project?

Use Cases

  • As an initial codebase when starting a new project using the Next.js pages directory
  • As a starting point when building interfaces with both NextUI and Tailwind CSS
  • For projects that need to connect to MongoDB and read the MONGODB_URI environment variable
  • To reference its integration approach when planning to configure PWA features for a Next.js application
  • For scenarios where deployment to Vercel or Netlify is planned and environment variable configuration reminders are needed

Suitable For

  • Developers familiar with Next.js and TypeScript who want to quickly obtain a project skeleton
  • Teams that need to combine NextUI and Tailwind CSS for UI development
  • Projects using MongoDB as data storage and managing the connection string themselves
  • Users who need a PWA configuration foundation and plan to deploy to Vercel or Netlify

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Clone the repository to a new directory: git clone https://github.com/xi-Rick/nextjs-pages-template.git "project-name"

  2. 2

    After entering the directory, run npm install or yarn install to install dependencies

  3. 3

    Prepare a MongoDB database (local or MongoDB Atlas), and copy .env.local.example to .env.local

  4. 4

    Set MONGODB_URI in .env.local to the MongoDB connection string

  5. 5

    Run npm run dev or yarn dev to start the development server, with the default address at http://localhost:3000; when deploying to Vercel, the same variables must be configured in Environment Variables

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version in a public repository under the MIT license; the free scope is the code of this version and does not mean that external services or third-party assets are free.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version's code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur additional charges.
  • Using a MongoDB database requires preparing it yourself: it can be deployed locally or use MongoDB Atlas (the README states it can be used for free); the template itself does not provide database services.
  • You must provide the MONGODB_URI environment variable (MongoDB connection string) yourself; otherwise, the application cannot connect to the database.
  • When deploying to Vercel, you must manually configure environment variable values in Environment Variables that match those in .env.local.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

Set up a MongoDB database either locally or with [MongoDB Atlas for free](https://mongodb.com/atlas).

Original README

- `MONGODB_URI` - Your MongoDB connection string. If you are using [MongoDB Atlas](https://mongodb.com/atlas) you can find this by clicking the "Connect" button for your cluster.

Original README

**Important**: When you import your project on Vercel, make sure to click on **Environment Variables** and set them to match your `.env.local` file.

Original README
https://github.com/xi-Rick/nextjs-pages-template/blob/main/LICENSEhttps://github.com/xi-Rick/nextjs-pages-template/blob/main/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-14. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
Partly documented · 65 / 100
Technologies
Next.js · React
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2024-06-26
Screenshot last checked
2026-10-14

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: codex-user-requested-batch-review-20261015 · 2026-10-15

Inspect the recorded source material

SHA-256: b06719ac0dff450f776a8e971d036e1d8e19b9046276d4da760a45e9ff2616d3

2026-10-14T01:53:34.011Z

Source file / repository
# Next.js, NextUI, MongoDB and Next-PWA Template

This starter template offers a robust foundation for developing applications using Next.js 13, structured with a pages directory, featuring NextUI (v2) for seamless user interface design, MongoDB for data management, and Next-PWA for Progressive Web App (PWA) capabilities.

## Technologies Used

This template leverages several technologies and tools to help you kickstart your development:

- [Next.js 13](https://nextjs.org/docs/getting-started): A popular React framework for building fast, modern web applications.

- [NextUI](https://nextui.org): A UI framework that provides a wide range of pre-designed components for building elegant and responsive user interfaces.

- [Tailwind CSS](https://tailwindcss.com): A utility-first CSS framework that makes it easy to create custom styles and designs.

- [Tailwind Variants](https://tailwind-variants.org): An extension for Tailwind CSS to enable more control over styling variants.

- [TypeScript](https://www.typescriptlang.org): A statically typed superset of JavaScript for improved code quality and developer productivity.

- [Framer Motion](https://www.framer.com/motion): A popular animation library for adding smooth and interactive animations to your web application.

- [next-themes](https://github.com/pacocoursey/next-themes): A tool for adding theming support to your Next.js applications.

- [MongoDB](https://www.npmjs.com/package/mongodb): A Node.js driver for MongoDB, which allows you to connect and interact with MongoDB databases, providing data persistence for your application.

- [Next-PWA](https://www.npmjs.com/package/next-pwa): A package to configure Progressive Web App (PWA) features in your Next.js application, enabling better offline functionality and improved user experience.

## Getting Started

To use this template and create a new project, follow these steps:

1. Clone this repository into a new directory with the following command:

```bash
git  clone  https://github.com/xi-Rick/nextjs-pages-template.git  "project-name"
```

2. Install the required dependencies by running:

```
cd "project-name"
npm install
# or
yarn install
```

## Configuration

### Set up a MongoDB database

Set up a MongoDB database either locally or with [MongoDB Atlas for free](https://mongodb.com/atlas).

### Set up environment variables

Copy the `env.local.example` file in this directory to `.env.local` (which will be ignored by Git):

```bash
cp  .env.local.example  .env.local
```

Set each variable on `.env.local`:

- `MONGODB_URI` - Your MongoDB connection string. If you are using [MongoDB Atlas](https://mongodb.com/atlas) you can find this by clicking the "Connect" button for your cluster.

### Run Next.js in development mode

```bash
npm  run  dev
# or
yarn  dev
```

Your app should be up and running on [http://localhost:3000](http://localhost:3000)! If it doesn't work, post on [GitHub discussions](https://github.com/vercel/next.js/discussions).

You will either see a message stating "You are connected to MongoDB" or "You are NOT connected to MongoDB". Ensure that you have provided the correct `MONGODB_URI` environment variable.

When you are successfully connected, you can refer to the [MongoDB Node.js Driver docs](https://mongodb.github.io/node-mongodb-native/3.4/tutorials/collections/) for further instructions on how to query your database.

## Deploy on Vercel

You can deploy this app to the cloud with [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/git?s=https://github.com/xi-Rick/nextjs-pages-template) [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/xi-Rick/nextjs-pages-template)

**Important**: When you import your project on Vercel, make sure to click on **Environment Variables** and set them to match your `.env.local` file.

## License

Licensed under the [MIT license](https://github.com/nextui-org/next-pages-template/blob/main/LICENSE).

![license](https://img.shields.io/npm/l/next-pwa.svg)
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.