Skip to main content

Prerequisites

Before you begin, ensure you have the following installed:

Node.js 20+

Download from nodejs.org

npm or pnpm

Package manager (npm comes with Node.js)

Git

Version control system
Recommended: Use Node.js 20.x or later for optimal Next.js 16 performance

Quick Start

1

Clone the Repository

Clone the SuperBox frontend repository to your local machine:
2

Install Dependencies

Install all required npm packages:
This will install Next.js 16, React 19, Tailwind CSS 4.1, Framer Motion, and all other dependencies.
3

Configure Environment Variables

Create a .env.local file in the root directory:
Edit .env.local with your configuration:
Never commit .env.local to version control. It contains sensitive credentials.
4

Start Development Server

Run the Next.js development server:
The application will be available at:

Development Commands

Starts the Next.js development server with hot module replacement (HMR)
Server runs on http://localhost:3000
Creates an optimized production build
Output is generated in the .next directory
Starts the production server (requires build first)
Serves the optimized production build
Runs ESLint to check code quality
Identifies and fixes linting issues
Runs TypeScript type checking
Validates TypeScript types without building

Project Structure

IDE Configuration

Install recommended extensions for the best development experience:

WebStorm / IntelliJ IDEA

Enable these features:
  • TypeScript Language Service
  • ESLint integration
  • Prettier integration
  • Tailwind CSS IntelliSense

Troubleshooting

If port 3000 is occupied, specify a different port:
Or kill the process using port 3000:
Clear node_modules and reinstall:
Restart the TypeScript server in VS Code:
  1. Press Cmd/Ctrl + Shift + P
  2. Type “TypeScript: Restart TS Server”
  3. Press Enter
Ensure Tailwind is properly configured and rebuild:
Verify your backend is running and environment variables are correct:

Performance Tips

Enable experimental features in next.config.mjs for better performance:

Next Steps

Component Library

Explore reusable components

Backend Setup

Set up the Go API backend

Deploy Frontend

Deploy to Vercel

API Integration

Learn about API endpoints