Quick Start
The fastest way to get started is to run all applications simultaneously:- Install dependencies if needed
- Start all applications in parallel (console and storybook)
- Enable hot module replacement for instant updates
Running Individual Applications
You can run specific applications instead of all apps at once:Console Application
The console app runs onhttp://localhost:3001 by default.
- Installs dependencies
- Runs
bun dev --filter={apps/console} - Starts the Next.js development server with hot reload
The console requires the Openlane Core backend to be running. See the setup guide for details.
Storybook Application
The storybook app provides isolated component development and documentation.- Installs dependencies
- Runs
bun dev --filter={apps/storybook} - Starts the Storybook development server
Using NPM Scripts Directly
You can also use the scripts defined inpackage.json:
Debug Mode
For debugging with additional information:Development Workflow
Environment Setup
Ensure your Update environment variables as needed for your local setup.
.env file is configured:Backend Connection
Start the Openlane Core backend (see backend setup):The default configuration expects the backend at:
- REST API:
http://localhost:17608 - GraphQL:
http://localhost:17608/query
Hot Module Replacement
All development servers support hot module replacement (HMR):- Edit any TypeScript, TSX, or CSS file
- Changes are reflected immediately in the browser
- React state is preserved when possible
- No manual refresh needed
Turborepo Features
The monorepo uses Turborepo for efficient development:- Parallel execution - Multiple apps run simultaneously
- Smart caching - Unchanged code isn’t rebuilt
- Dependency awareness - Packages rebuild when dependencies change
Common Issues
Port Already in Use
If port 3001 is already in use:Cannot Login with Test User
If you cannot login with a test user created by the backend setup:- Check your
.envfile forNEXT_PUBLIC_ALLOWED_LOGIN_DOMAINS - Either set it to include your test email domain, or leave it empty to allow all domains:
Stale Dependencies
If you encounter dependency issues:- Clean all node_modules and build artifacts
- Update Turborepo
- Run turbo clean
- Reinstall all dependencies
Environment Variables Not Loading
Remember that Turborepo v2 requires.env files in the app directory: