WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto

feat(devenv): make postgres optional via mkDefault, document SQLite alternative

+10 -1
+5
.env.example
··· 8 8 LOG_LEVEL=info # debug | info | warn | error | fatal 9 9 10 10 # Database 11 + # PostgreSQL (default, used with devenv): 11 12 DATABASE_URL=postgres://atbb:atbb@localhost:5432/atbb 13 + 14 + # SQLite alternative (no devenv postgres needed): 15 + # DATABASE_URL=file:./data/atbb.db 16 + # DATABASE_URL=file::memory:?cache=shared # in-memory, for tests only 12 17 13 18 # Web UI configuration 14 19 # WEB_PORT=3001 # set in web package, or override here
+5 -1
devenv.nix
··· 11 11 pkgs.nginx 12 12 ]; 13 13 14 + # PostgreSQL is enabled by default for development. 15 + # To use SQLite instead, create devenv.local.nix with: 16 + # { ... }: { services.postgres.enable = false; } 17 + # Then set DATABASE_URL=file:./data/atbb.db in your .env file. 14 18 services.postgres = { 15 - enable = true; 19 + enable = pkgs.lib.mkDefault true; 16 20 package = pkgs.postgresql_17; 17 21 listen_addresses = "127.0.0.1"; 18 22 port = 5432;