Skip to content
Yuxiang Huang edited this page Jan 9, 2026 · 19 revisions

Dev Container Setup

Prerequisites: Docker and Dev Containers Extension.

  1. Clone and open the repository locally in VS Code (or any other IDE that supports Dev Containers).
  2. Click on the Reopen in Container button that pops up in the bottom left corner of the VS Code window.
    • Or open the command palette and run the command Dev Containers: Reopen in Container.
  3. Wait for the container to start. It may take a few minutes to install dependencies and run post create script.
  4. Visit the respective README files to start developing!

Troubleshooting

Dev Container Installation Issues

Check if the Docker Desktop version is up to date.

Post Create Script

If the post create command in dev container fails, you can manually run the post create script in the container by running the following command in the root directory:

./scripts/post-create.sh

Manual Setup (Not Recommended)

The dev container setup is recommended and automated, but if you prefer to set up the environment manually or the dev container didn't work, follow the instructions below to manually set up the environment.

Install System-Level Dependencies

Install Bun Dependencies

  1. Run bun install

  2. Set up environment variables by running the following commands in the root directory:

    1. bun run vault:setup
    2. bun run vault:pull all local

Database

Push the database schema by running the following command in apps/server:

bunx prisma db push

Troubleshooting

If you see errors about 'port in use', use lsof -i :5432 to find the process using that port and kill it with kill -9 <PID>.

Running the Server

Run the server by running the following command in apps/server:

bun run dev

Navigate to http://localhost/buildings and make sure it shows {} instead of an internal server error.

Keeps the server running and open another terminal.

Populating the Database

  1. Create and activate a virtual environment by running the following commands in the root directory:

    python3 -m venv venv
    source venv/bin/activate
  2. Run the following command in apps/data to install the requirements:

     pip3 install -r requirements.txt
  3. To populate the database, run the following command in apps/data:

    python3 floorplans/deserializer/database_population.py
  4. You can kill the server after the database is populated, so the port is available in the next step.

Running the Web or Visualizer

Follow the instructions in web README or visualizer README to start developing on the web or visualizer!

Clone this wiki locally