To build the entire repository and run the application, follow these steps:
-
The system dependencies to install are:
- mise
- docker
- mkcert — provisions the
local TLS cert the realm-server needs to speak HTTPS+HTTP/2 (local
dev has no HTTP fallback). Install with
sudo apt install -y mkcert libnss3-toolson Debian/Ubuntu orbrew install mkcert nsson macOS. After install, runmise run infra:ensure-dev-certonce before the firstmise run dev/pnpm start:all; subsequent runs are a no-op. See the repo-root README for details.
-
Clone the repo:
git clone https://github.com/cardstack/boxel.git
-
Install the package dependencies:
mise install pnpm install
-
Build the boxel-ui addon:
cd ./packages/boxel-ui/addon pnpm rebuild:icons pnpm build -
Build the boxel-icons:
cd ./packages/boxel-icons pnpm build -
Build the host:
cd ./packages/host pnpm start -
Run the realm server:
cd ./packages/realm-server DISABLE_MODULE_CACHING=true pnpm start:allNote: Ensure that the realm-server is completely started by looking out for tor the test-realm indexing output.
Realm https://localhost:4202/test/ has started ({ "instancesIndexed": 8, "instanceErrors": 0, "moduleErrors": 0 }) -
Register ALL:
cd ./packages/matrix pnpm register-all -
Verify registration:
cd ./packages/matrix pnpm start:adminVisit http://localhost:8080. Type in Username = "admin", Password: "password" Homeserver URL: http://localhost:8008
-
Host App
- Visit https://localhost:4200/
- Enter the registration flow and create a Boxel Account
- When prompted for an authentication token, type in "dev-token"
-
Validate email for login
- Visit SMTP UI at http://localhost:5001/
- Validate email
- Go back to Host https://localhost:4200/ and login
-
Perform "Setup up Secure Payment Method" flow
- More detailed steps can be found in our README Payment Setup section
-
Run ai bot (Optional):
cd ./packages/ai-bot OPENROUTER_API_KEY=*** pnpm start
If you experience issues, you can start from scratch by running this command
pnpm clear-caches
pnpm full-reset