Star us on GitHub
Star
Menu

Development deployment guide.

Learn how to set up the dev deployment of highlight.io to start contributing.
1
Prerequisites

Before we get started, you should have the latest version of docker (19.03.0+) and git (2.13+) installed. For a local deploy, we suggest configuring docker to use at least 16GB of memory, 4 CPUs, and 256 GB of disk space.

2
Clone the repository.

Clone the highlight.io repository and make sure to checkout the submodules with the --recurse-submodules flag.

git clone --recurse-submodules https://github.com/highlight/highlight
Copy
3
Enter the `highlight/docker` directory.

Navigate into the highlight/docker directory of the repo.

cd highlight/docker
Copy
4
Set the environment variable `COMPOSE_FILE` to support hot reloading.

In the highlight/docker directory, set the environment variable COMPOSE_FILE as specified. This will enable hot reloading of both our backend and frontend.

export COMPOSE_FILE=compose.yml:compose.dev.yml
Copy
5
Start the docker compose containers.

In the highlight/docker directory, run docker compose up --build -d to start the docker containers.

docker compose up --build -d
Copy
6
Visit the dashboard.

Visit https://localhost:3000 to view the dashboard and go through the login flow; there are no login credentials required.

7
View your first session.

After clicking around on the dashboard for a bit, you should see a session appear at https://localhost:3000/1/sessions. Click on the session to view the session details page.

8
Troubleshoot the deployment.

Having issues? Here's some things ot try. First run the docker ps command and ensure that all containers are in a 'healthy' state. As a second step, run docker compose logs -f backend frontend to see the logs for the backend and frontend containers. If this doesn't help w/ troubleshooting, please reach out.

docker ps docker compose logs -f backend frontend
Copy