[GUIDE] Local Development
bun install
-- install dependenciescp ./packages/api/.env.example ./packages/api/.env
-- copy the example env filebun minio:dev
-- run the dev minio containerbun db:dev
-- run the dbbun api:dev
-- run the backendbun ui:dev
-- run the ui- Add
stellariscloud.localhost
andminio
to your /etc/hosts file (pointing at 127.0.0.1) - Visit http://stellariscloud.localhost:5173
Other helpful commands
Backend
Run the API container after a fresh docker build
bun api:dev:build
Clean the db and restart the app
bun dev:restart:api:clean
Regenerate openapi.json & api-paths.d.ts
bun generate:openapi
Run E2E tests
Start the db + minio
bun --cwd ./packages/api dev:docker:e2e:services
Clean the tests db
bun --cwd ./packages/api dev:docker:e2e:down
Run all e2e tests
bun --cwd ./packages/api dev:docker:e2e:run
Building docker images
Standalone image (includes postgres)
bun build:standalone
Separate DB image (does not include postgres)
bun build:separate-db
Run linting/prettier/tsc checks
bun dev:tsc-all
bun dev:prettier-all
bun dev:lint-all
Run the demo app frontend in dev mode (in @stellariscloud/app-demo)
echo 'SC_APP_FRONTEND_PROXY_HOST_DEV_MAIN=http://localhost:5175' > ./packages/ui/.env.development.local
-- tell the UI to proxy frontend requests for themain
frontend of thedev
app tohttp://localhost:5175
bun appuidemo:dev
-- run the demo app frontend