.. | ||
devenv | ||
nginx | ||
docker-compose.yml | ||
README.md |
Running the development environment
- Install Docker
- Make a copy of
.env.example
called.env
- Fill in the missing values in
.env
- Run
./docker-compose-dev.sh up
to start the development environment - Connect to the development environment with your editor's remote SSH feature (see below)
Connecting with VSCode
- Install the
Remote - SSH
plugin - 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
- Once connected, click
Open folder...
and select/home/ubuntu/zeppelin
Connecting with JetBrains Gateway
- TODO (basically the same as VSCode instructions though)
Starting the backend (bot + api)
These commands are run inside the dev container. You should be able to just open a terminal in your editor after connecting.
cd ~/zeppelin/backend
npm ci
npm run migrate-dev
npm run watch
Starting the dashboard
cd ~/zeppelin/dashboard
npm ci
npm run watch-build
Opening the dashboard
Browse to https://localhost:3300 to view the dashboard