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
Remote - Containers
plugin - In VSCode: Run
Remote-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]: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
- 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:
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
- 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:
3002
(matching theDOCKER_DEV_SSH_PORT
value in.env
) - Username:
ubuntu
- Password: As specified in
.env
asDOCKER_DEV_SSH_PASSWORD
- Host:
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
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
Browse to https://localhost:3300 to view the dashboard