cp .env.example .env
pnpm install
# start docker container with postgres and node
pnpm docker:dev
# or start only with node
pnpm dev
# you may need to run migrations too:
pnpm migrate
pnpm db:push
- push database changes during development
pnpm db:seed
- seed database with data
pnpm migrate:generate
- create a migration from changes in schema
pnpm migrate
- deploy pending migrations
pnpm db:reset
- rollback entire database
pnpm studio
- opens drizzle studio
Build image
docker build -t boilerplate .
Run image:
docker run -it -p 8000:8000 boilerplate