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!
Note: If you'd just like to run the bot for your own server, see 👉 PRODUCTION.md 👈
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- In VSCode: Install the
Dev Containers
plugin - In VSCode: Run
Dev Containers: Open Folder in Container...
and select the Zeppelin folder
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker compose -f docker-compose.development.yml 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
[email protected]:3022
(where3022
matchesDEVELOPMENT_SSH_PORT
in.env
) - Use the password specified in
.env
asDEVELOPMENT_SSH_PASSWORD
- As the address, use
- In VSCode: Once connected, click
Open folder...
and select/home/ubuntu/zeppelin
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker compose -f docker-compose.development.yml up
to start the development environment - Choose
Connect via SSH
and create a new connection:- Username:
ubuntu
- Host:
127.0.0.1
- Port:
3022
(matching theDEVELOPMENT_SSH_PORT
value in.env
)
- Username:
- Click
Check Connection and Continue
and enter the password specified in.env
asDEVELOPMENT_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
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
docker compose -f docker-compose.development.yml up
to start the development environment - Use the following credentials for connecting with your IDE:
- Host:
127.0.0.1
- Port:
3022
(matching theDEVELOPMENT_SSH_PORT
value in.env
) - Username:
ubuntu
- Password: As specified in
.env
asDEVELOPMENT_SSH_PASSWORD
- Host:
These commands are run inside the dev container. You should be able to open a terminal in your IDE after connecting to the dev environment.
npm ci
cd ~/zeppelin/backend
npm run watch
cd ~/zeppelin/dashboard
npm run watch
Browse to https://localhost:3300 to view the dashboard