|
1 |
| -# Zeppelin development environment |
2 |
| -Zeppelin's development environment runs entirely within a Docker container. |
3 |
| -Below you can find instructions for setting up the environment and getting started with development! |
4 |
| - |
5 |
| -**Note:** If you'd just like to run the bot for your own server, see 👉 **[PRODUCTION.md](./PRODUCTION.md)** 👈 |
6 |
| - |
7 |
| -## Starting the development environment |
8 |
| - |
9 |
| -### Using VSCode devcontainers |
10 |
| -1. Install Docker |
11 |
| -2. Make a copy of `.env.example` called `.env` |
12 |
| -3. Fill in the missing values in `.env` |
13 |
| -4. In VSCode: Install the `Remote - Containers` plugin |
14 |
| -5. In VSCode: Run `Remote-Containers: Open Folder in Container...` and select the Zeppelin folder |
15 |
| - |
16 |
| -### Using VSCode remote SSH plugin |
17 |
| -1. Install Docker |
18 |
| -2. Make a copy of `.env.example` called `.env` |
19 |
| -3. Fill in the missing values in `.env` |
20 |
| -4. Run `docker compose -f docker-compose.development.yml up` to start the development environment |
21 |
| -5. In VSCode: Install the `Remote - SSH` plugin |
22 |
| -6. In VSCode: Run `Remote-SSH: Connect to Host...` |
23 |
| - * As the address, use `[email protected]:3002` (where `3002` matches `DOCKER_DEV_SSH_PORT` in `.env`) |
24 |
| - * Use the password specified in `.env` as `DOCKER_DEV_SSH_PASSWORD` |
25 |
| -7. In VSCode: Once connected, click `Open folder...` and select `/home/ubuntu/zeppelin` |
26 |
| - |
27 |
| -### Using JetBrains Gateway |
28 |
| -1. Install Docker |
29 |
| -2. Make a copy of `.env.example` called `.env` |
30 |
| -3. Fill in the missing values in `.env` |
31 |
| -4. Run `docker compose -f docker-compose.development.yml up` to start the development environment |
32 |
| -5. Choose `Connect via SSH` and create a new connection: |
33 |
| - * Username: `ubuntu` |
34 |
| - * Host: `127.0.0.1` |
35 |
| - * Port: `3002` (matching the `DOCKER_DEV_SSH_PORT` value in `.env`) |
36 |
| -6. Click `Check Connection and Continue` and enter the password specified in `.env` as `DOCKER_DEV_SSH_PASSWORD` when asked |
37 |
| -7. In the next pane: |
38 |
| - * IDE version: WebStorm, PHPStorm, or IntelliJ IDEA |
39 |
| - * Project directory: `/home/ubuntu/zeppelin` |
40 |
| -8. Click `Download and Start IDE` |
41 |
| - |
42 |
| -### Using any other IDE with SSH development support |
43 |
| -1. Install Docker |
44 |
| -2. Make a copy of `.env.example` called `.env` |
45 |
| -3. Fill in the missing values in `.env` |
46 |
| -4. Run `docker compose -f docker-compose.development.yml up` to start the development environment |
47 |
| -5. Use the following credentials for connecting with your IDE: |
48 |
| - * Host: `127.0.0.1` |
49 |
| - * Port: `3002` (matching the `DOCKER_DEV_SSH_PORT` value in `.env`) |
50 |
| - * Username: `ubuntu` |
51 |
| - * Password: As specified in `.env` as `DOCKER_DEV_SSH_PASSWORD` |
52 |
| - |
53 |
| -## Starting the project |
54 |
| - |
55 |
| -### Starting the backend (bot + api) |
56 |
| -These commands are run inside the dev container. You should be able to open a terminal in your IDE after connecting. |
57 |
| - |
58 |
| -1. `cd ~/zeppelin/backend` |
59 |
| -2. `npm ci` |
60 |
| -3. `npm run migrate-dev` |
61 |
| -4. `npm run watch` |
62 |
| - |
63 |
| -### Starting the dashboard |
64 |
| -These commands are run inside the dev container. You should be able to open a terminal in your IDE after connecting. |
65 |
| - |
66 |
| -1. `cd ~/zeppelin/dashboard` |
67 |
| -2. `npm ci` |
68 |
| -3. `npm run watch-build` |
69 |
| - |
70 |
| -### Opening the dashboard |
71 |
| -Browse to https://localhost:3300 to view the dashboard |
| 1 | +Moved to [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) |
0 commit comments