Create the required .env files for the services you want to run. At minimum, the backend services need:
DATABASE_URL=postgresql://...
REDIS_URL=redis://...The frontend uses:
NEXT_PUBLIC_API_URL=http://localhost:5000Use http://localhost:3001 instead if the frontend should call the Rust API.
From the Rust workspace:
cd BetterStack_Rust
cargo run -p api
cargo run -p pusher
REGION_NAME=ohio WORKER_ID=ohio-1 cargo run -p workerUse different REGION_NAME and WORKER_ID values when running multiple workers.
From the TurboRepo workspace:
cd BetterStack_turbo
npm install
npm run dev --workspace=my-appThe frontend usually runs at http://localhost:3000.
The TurboRepo also contains TypeScript service implementations:
npm run dev --workspace=api
cd apps/pusher && bun index.ts
cd apps/worker && bun index.tsOnly the monitoring workers are deployed on Render free instances. The active worker regions are Ohio, Virginia, Singapore, and Frankfurt.
The frontend and HTTP APIs are not publicly deployed at this stage.