A template with Next.js built on React with focus on performance and best practices.
Note
You need to have Node.js installed on your computer before running this project.
- First clone this repository and navigate into your project directory
copy .env-example .env- copy the .env file- Install the dependencies:
npm run install - Run the development server:
npm run dev
To launch the project in development mode with hot module replacement.
npm run dev: to compile the React application and serve it to the browsernpm run dev:turbo: to compile faster in local development
You can view the development server at http://localhost:3000
Build and optimize your application with Vite for production.
npm run build: build for production with minification
Exporting React project
Build the application, generate every route as a HTML file and statically export to directory.
npm run export: to generate static project files
Start the production server (after running npm run build).
npm run start: starts a web-server with a preview of your project
Navigate into your project directory and start linting your files.
npm run lint:eslint: lints JavaScript filesnpm run lint:eslint:fix: to eliminate all possible errors
npm run lint:stylelint: lints Cascading Style Sheets filesnpm run lint:stylelint:fix: to eliminate all possible errors