# @vt3e.cat/bbell-server actual backend implementation powered by atcute ## setup ```bash git clone https://tangled.org/bbell.vt3e.cat/backend.git bun install cd pkgs/lexicons bun run gen bun run build cd ../server bun scripts/generate-secrets.ts # copy the example config file & edit, plus add secrets generated above cp .config.example.json .config.{ENVIRONMENT}.json bunx --bun drizzle-kit up bunx --bun drizzle-kit push # or after an update, migrate PORT=3000 bun src ``` the program will read the config file from `.config.{ENVIRONMENT}.json`, where `{ENVIRONMENT}` is the value of the `NODE_ENV` environment variable. in the config file for the database path, you can use the special value `{env}`, and the program will substitute it with the value of `NODE_ENV`, e.g,. `NODE_ENV=production`; -> `db.{env}.sqlite` -> `db.production.sqlite`.