Next.js
Get Started
Install dependencies, run the dev server, and build your Next.js project locally.
Welcome to Optim AI Next.js. This guide helps you run your Next.js project locally and understand its basic development workflow.
What is included
The Next.js package is a Next.js 16 marketing template for AI products. It includes:
- marketing pages such as home, about, integration, testimonial, contact, login, and signup
- markdown-driven blog, services ,use-case and many more sections
- shared SEO metadata helpers
- GSAP and Lenis-powered motion
- Tailwind CSS 4 styling with TypeScript and React 19
Prerequisites
Before you start, make sure you have:
- Node.js
20.0.0or later - Git
- One package manager: bun (recommended),
npm,yarn, orpnpm
Setup
Open the project folder
After extracting your package, open your Next.js project folder in your editor.
Install dependencies
Run one of these commands:
Terminal
bun install
# or
npm install
# or
yarn install
# or
pnpm install
Start the development server
Terminal
bun run dev
# or
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000.
Build for production
Terminal
bun run build
# or
npm run build
# or
yarn build
# or
pnpm build
Start the production server
Terminal
bun run start
# or
npm run start
# or
yarn start
# or
pnpm start
Available scripts
| Script | What it does |
|---|---|
dev | Starts the Next.js development server |
build | Creates the production build |
start | Runs the production server |
lint | Runs ESLint |
You can use bun (recommended),
npm, yarn, or pnpm. For best results, use only one package manager per project.Verify your setup
After setup, confirm:
http://localhost:3000loads correctly- editing a component triggers hot reload
bun run build,npm run build,yarn build, orpnpm buildsucceeds without errors