Prerequisites
Before you begin, ensure you have the following installed:- Node.js >= 18.15.0 (or v20+)
- PNPM v10.26.0 or higher
The project is configured to use pnpm v10. Using other package managers may cause issues.
Repository Structure
Flowise has 3 different modules in a single mono repository:server: Node.js backend to serve API logicsui: React frontendcomponents: Third-party nodes integrationsapi-documentation: Auto-generated swagger-ui API docs from express
Setup Instructions
Build the code
Build all the code:
Exit code 134 (JavaScript heap out of memory)?If you encounter this error, increase the Node.js heap size:
Start the application
Development Mode
For active development with hot reloading:Configure environment variables
Create In
.env files for both UI and server packages:In packages/ui/.env:packages/server/.env:Refer to
.env.example files in each package for all available options.Start development server
Run the development build:Any code changes will automatically reload the app on http://localhost:8080
Testing Your Changes
Before submitting your changes, ensure everything works in production mode:Common Development Tasks
Running specific package scripts
You can run scripts in specific packages using pnpm filters:Cleaning build artifacts
Linting and formatting
Environment Variables
Flowise supports various environment variables for configuration. Here are some commonly used ones:| Variable | Description | Default |
|---|---|---|
PORT | The HTTP port Flowise runs on | 3000 |
VITE_PORT | The port for development UI | 8080 |
DEBUG | Print logs from components | - |
DATABASE_TYPE | Type of database (sqlite, mysql, postgres) | sqlite |
DATABASE_PATH | Location where database is saved | ~/.flowise |
LOG_LEVEL | Log level (error, info, verbose, debug) | info |
Troubleshooting
Port already in use
If you get a port conflict error, either:- Kill the process using the port
- Change the port in your
.envfiles
Build failures
If you encounter build failures:- Clear the cache:
pnpm clean - Remove node_modules:
pnpm nuke - Reinstall:
pnpm install - Rebuild:
pnpm build
Components not updating
If your component changes aren’t reflected:- Stop the dev server
- Run
pnpm buildto rebuild components - Start the dev server again with
pnpm dev
Next Steps
- Learn how to create custom nodes
- Review the contributing guidelines
- Understand the architecture
