Dev Containers
Using Dev Containers in Visual Studio Code
The project includes a dev container configuration that allows you to use Visual Studio Code’s Remote Development extension to develop the project in a consistent environment. This can be especially helpful if you are new to the project or if you have a different environment setup on your local machine.
Prerequisites
Before you can use the dev container, you will need to install the following:
- Visual Studio Code.
- The Remote Development extension for Visual Studio Code.
- Docker.
Using the Dev Container
To use the dev container for the Activepieces project, follow these steps:
- Clone the Activepieces repository to your local machine.
- Open the project in Visual Studio Code.
- Press
Ctrl+Shift+P
and type> Dev Containers: Reopen in Container
. - Run
npm start
. - The backend will run at
localhost:3000
and the frontend will run atlocalhost:4200
.
By default, the development setup only builds specific pieces.Open the file
packages/server/api/.env
and add comma-separated list of pieces to make
available.
For more details, check out the Piece Development section.
The login credentials are:
Email: [email protected]
Password: 12345678
Exiting the Dev Container
To exit the dev container and return to your local environment, follow these steps:
- In the bottom left corner of Visual Studio Code, click the
Remote-Containers: Reopen folder locally
button. - Visual Studio Code will close the connection to the dev container and reopen the project in your local environment.
Troubleshoot
One of the best trouble shoot after an error occur is to reset the dev container.
- Exit the dev container
- Run the following
- Rebuild the dev container from above steps