Running for dev
-
install docker https://docs.docker.com/engine/install/ubuntu/
-
Install bun https://bun.sh/docs/installation
2.1. Be sure you got a version that's above 1.2.13.
-
To install dependencies:
bun install cp .env.example .env
-
Get the container up and running:
docker compose --profile test up
-
set dev db
bun db:generate bun db:migrate bun db:seed
-
Run dev server:
bun run dev
Running for production
-
Make a copy of .env.example to .env
mv .env.example .env
-
Set env vars in .env
-
Get the container up and running:
docker compose --profile prod up --build -d
-
Server is now running in http://localhost:3000