| Env | CI status |
|---|---|
| Production |
- Node.js >=20 and yarn
- PostgreSQL >= 15 or Docker for running PostgreSQL in container
-
Run
docker compose upin 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.localfile that can override configuration options from.envin 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 react-hot-toast library to admin app
yarn workspace admin add react-hot-toast