-
Install some tools:
cargo install sea-orm-cli \ cargo-sort \ cargo-edit \ cargo-udeps
-
Create the required docker volumes and networks:
docker volume create portal_db docker volume create portal_db_backup docker volume create portal_minio_data docker network create portal_public docker network create portal_private
-
Create
compose.override.yamlwith the following content. It opens ports for local development.services: traefik: ports: - 8080:8080 minio: ports: - 9001:9001 postgres: ports: - 5432:5432
-
Create an
.envfile from the example (cp .env.example .env), and update the values as needed. -
Start the dev stack with
docker compose --profile dev up -d. This will create a local PostgreSQL and MinIO instance. To operate on the entire stack, use e.g.docker compose --profile "*" up/down/.... -
Run
make prisma-devormake prisma-resetto initialize the database and apply the latest migrations. If you have access to migrations that restore a dump, place them in thedb/migrationsfolder first. -
Start the portal api with
cd backendandcargo run --bin hackathon-portal-api. -
Start the frontend with
cd frontend && npm installandnpm run dev. -
Look at the
Makefilefor more commands that can be useful during development. Also, refer to the READMEs in the child folders.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
VIS-ETH/hackathon-portal
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.