---
id: nextjs-template
title: Next.js Template
sidebar_label: Next.js
---

<!-- @format -->

This template provides a basic Next.js project setup.

## Features

- **Next.js**: A React framework for building full-stack web applications.
- **React**: The JavaScript library for building user interfaces.
- **ESLint**: Configured for Next.js best practices.

## Files Included

- `pages/index.js`: The main page of your Next.js application.
- `.gitignore`: Configured to ignore `node_modules`, `.next`, `out`, and other common files.
- `package.json`: Configured with `dev`, `build`, `start`, and `lint` scripts, and necessary dependencies.

## Available Scripts

In the project directory, you can run:

- `npm run dev`: Starts the development server.
- `npm run build`: Creates an optimized production build.
- `npm start`: Starts the Next.js production server.
- `npm run lint`: Runs ESLint to check for code quality issues.

## Getting Started

1.  **Install Dependencies**: After creating your project, install the dependencies:
    ```bash
    npm install
    ```
2.  **Run Development Server**: Start the development server:
    ```bash
    npm run dev
    ```
    Open [http://localhost:3000](http://localhost:3000) to view your application.
