Installation
Step-by-step guide to getting Flux Dashboard running on your local machine.
Prerequisites
Before you begin, make sure you have the following installed:
- Node.js 18+ — Download Node.js
- npm, yarn, or pnpm — npm ships with Node.js; yarn and pnpm are optional alternatives
- Git — for cloning the repository
Step 1: Extract & Install
# Unzip the downloaded archive
cd flux-dashboard
# Install dependencies
npm installStep 2: Install Dependencies
Use your preferred package manager:
npm
npm installyarn
yarnpnpm
pnpm installStep 3: Run the Dev Server
npm run devThe development server starts at http://localhost:3838. Next.js hot-reloads your changes automatically so you can see updates in real time.
Step 4: Build for Production
When you are ready to deploy, create an optimized production build:
npm run build
npm run startnpm run build compiles and optimizes the application. npm run start serves the built output on port 3000.
Available Scripts
| Command | Description |
|---|---|
npm run dev | Start development server with hot reload |
npm run build | Create optimized production build |
npm run start | Serve the production build |
npm run lint | Run ESLint across the project |
npm run test | Run Vitest unit tests in watch mode |
npm run test:run | Run Vitest unit tests once (CI-friendly) |
npm run test:e2e | Run Playwright end-to-end tests |
npm run test:e2e:ui | Open Playwright interactive UI mode |
npm run storybook | Launch Storybook component browser on port 6006 |
npm run build-storybook | Build static Storybook for deployment |
npm run analyze | Run production build with bundle analyzer report |
Next Steps
Now that you have the project running, explore the Folder Structure to understand how the codebase is organized.