- Docker + Docker Compose 2.22.0 minimum
- Docker connection to GHCR registry (see GHCR documentation)
- Bun (
powershell -c "irm bun.sh/install.ps1|iex"
)
- Clone the repository
- Copy the .env.example file to .env and fill the variables
- Run
bun install
in./back
and./front
folders - Run the following command to start the application:
docker compose -f docker-compose.dev.yml up --watch --build
- Once Postgres is up, run
bun run prisma:dev:apply
in the./back
folder to apply the migrations
The application will be available at http://localhost
Once you made a change to the database schema, you need to create a new migration.
To do so, your dev environment must be up & you have to run the following command in the ./back
folder:
bun run prisma:dev:migrate
The docker compose watcher should automatically restart all the services.
ℹ️ Prisma Studio is the official database UI for Prisma. It allows to view & edit the data inside the Postgres database.
To open the Prisma Studio, run the following command in the ./back
folder:
bun run prisma:dev:studio
The studio should open itself up in your default browser.