Next.js Template
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 ignorenode_modules
,.next
,out
, and other common files.package.json
: Configured withdev
,build
,start
, andlint
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
- Install Dependencies: After creating your project, install the dependencies:
npm install
- Run Development Server: Start the development server:
Open http://localhost:3000 to view your application.
npm run dev