To install dependencies:
bun installTo run:
bun startor in dev
bun run dev- Build the image:
docker build -t cottage-industries .- Run the container:
docker run -p 3000:3000 \
--env-file .env \
-v $(pwd)/data:/app/data \
cottage-industriesNote: We mount a volume to
/app/dataand use--env-file .envto pass configuration and secrets. Ensure your.envfile hasDB_PATH=/app/data/database.db.
The application is configured via the .env file. Ensure the following variables are set:
NODE_ENV Set to "production" in deployment for security features. SESSION_SECRET Long random string used to sign sessions. ADMIN_EMAIL Email for the site’s admin user.
PORT Defaults to 3000 if not set.
DB_PATH Path to SQLite file. Defaults to ./database.db.
GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET GITHUB_CLIENT_ID GITHUB_CLIENT_SECRET
This project was created using bun init in bun v1.3.2. Bun is a fast all-in-one JavaScript runtime.