Prerequisites
Before you start, ensure you have:- Node.js 18.x or higher
- Bun 1.3.3 or higher (package manager)
- Git for version control
- A code editor (VS Code recommended)
Fork and Clone the Repository
Fork the Repository
Go to the Activepieces GitHub repository and click the “Fork” button in the top right corner.
Install Dependencies
Activepieces uses Bun as the package manager. The setup script will install it automatically:- Install Bun if not already installed
- Install all project dependencies
- Start the development environment
The first run may take several minutes as it installs dependencies for all packages.
Development Environment
Once dependencies are installed, you can start the development servers:- Full Stack
- Frontend Only
- Backend Only
Start frontend, backend, and engine together:This runs:
- GUI: Angular frontend on
http://localhost:4200 - API: Backend server on
http://localhost:3000 - ENG: Flow execution engine
Hot Reloading for Pieces
One of the best features of Activepieces development is hot reloading for pieces. When you make changes to piece code, they’re immediately reflected without restarting the server.How It Works
Edit Piece Code
Make changes to any file in
src/ directory. The changes will be detected automatically.Project Structure
Understanding the project structure helps you navigate the codebase:Useful Commands
Here are the most common commands you’ll use:Environment Variables
For local development, you may need to configure environment variables:.env
IDE Setup (VS Code)
For the best development experience with VS Code:Recommended Extensions
- ESLint - Linting and code quality
- Prettier - Code formatting
- TypeScript and JavaScript Language Features - Enhanced TS support
- GitLens - Git integration
Workspace Settings
Create.vscode/settings.json:
Troubleshooting
Bun installation fails
Bun installation fails
If automatic Bun installation fails:
Port already in use
Port already in use
If ports 3000 or 4200 are already in use:
Hot reload not working
Hot reload not working
If changes aren’t being detected:
- Ensure you’re in dev mode:
npm run dev - Check file watcher limits (Linux):
- Restart the dev server
TypeScript errors
TypeScript errors
If you see TypeScript errors after pulling changes:
Next Steps
Create Your First Piece
Now that your environment is set up, create your first piece!