Env | CI status |
---|---|
Production |
- Node.js >=18 and yarn
- PostgreSQL >= 15 or Docker for running PostgreSQL in container
-
Run
docker compose up
in separate terminal or follow steps below if you already have postgres server running locally.If you use local postgres db server, create manually new database named
ddays-app
-
Create
.env.local
file that can override configuration options from.env
in web/api apps.
Run command from workspace level
yarn
yarn db:generate
yarn db:migrate
or just restart development server
yarn dev
App is now accessible on http://localhost:3000/. API routes are prefixed with /api
, Admin app is prefixed with /admin
and Sponsor app is prefixed with /sponsor
.
yarn workspace <workspace> add <package>
example: add drizzle-kit
library to api
app
yarn workspace api add drizzle-kit