2.8 KiB
2.8 KiB
Zeppelin development environment
Zeppelin's development environment runs entirely within a Docker container. Below you can find instructions for setting up the environment and getting started with development!
👉 No support is offered for self-hosting the bot! 👈
Starting the development environment
Using VSCode devcontainers
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- In VSCode: Install the
Remote - Containers
plugin - In VSCode: Run
Remote-Containers: Open Folder in Container...
and select the Zeppelin folder
Using VSCode remote SSH plugin
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker-compose up
to start the development environment - In VSCode: Install the
Remote - SSH
plugin - In VSCode: Run
Remote-SSH: Connect to Host...
- As the address, use
ubuntu@127.0.0.1:3002
(where3002
matchesDOCKER_DEV_SSH_PORT
in.env
) - Use the password specified in
.env
asDOCKER_DEV_SSH_PASSWORD
- As the address, use
- In VSCode: Once connected, click
Open folder...
and select/home/ubuntu/zeppelin
Using JetBrains Gateway
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker-compose up
to start the development environment - Choose
Connect via SSH
and create a new connection:- Username:
ubuntu
- Host:
127.0.0.1
- Port:
3002
(matching theDOCKER_DEV_SSH_PORT
value in.env
)
- Username:
- Click
Check Connection and Continue
and enter the password specified in.env
asDOCKER_DEV_SSH_PASSWORD
when asked - In the next pane:
- IDE version: WebStorm, PHPStorm, or IntelliJ IDEA
- Project directory:
/home/ubuntu/zeppelin
- Click
Download and Start IDE
Using any other IDE with SSH development support
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker-compose up
to start the development environment - Use the following credentials for connecting with your IDE:
- Host:
127.0.0.1
- Port:
3002
(matching theDOCKER_DEV_SSH_PORT
value in.env
) - Username:
ubuntu
- Password: As specified in
.env
asDOCKER_DEV_SSH_PASSWORD
- Host:
Starting the project
Starting the backend (bot + api)
These commands are run inside the dev container. You should be able to open a terminal in your IDE after connecting.
cd ~/zeppelin/backend
npm ci
npm run migrate-dev
npm run watch
Starting the dashboard
These commands are run inside the dev container. You should be able to open a terminal in your IDE after connecting.
cd ~/zeppelin/dashboard
npm ci
npm run watch-build
Opening the dashboard
Browse to https://localhost:3300 to view the dashboard