- Timestamp:
- 08/07/26 03:00:46 (8 weeks ago)
- Branches:
- main
- Children:
- df05838
- Parents:
- b715712
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
rb715712 rfe28254 4 4 *Databases 2025/2026 Winter*, FINKI UKIM. 5 5 6 Full documentation lives in [`docs/`](docs/) — start at [`docs/README.md`](docs/README.md),7 which is the project front page and links every phase. Detailed build and test8 instructions are in [`docs/P4-Prototype/BuildInstructions.md`](docs/P4-Prototype/BuildInstructions.md).9 6 10 7 ## Run it in four commands 11 8 12 9 ```sh 13 cp .env.example .env # local defaults: postgres on port 543314 docker compose up -d # start PostgreSQL10 cp .env.example .env 11 docker compose up -d 15 12 go build -o eduberza ./server 16 ./eduberza -init # create the `project` schema + load sample data17 ./eduberza # start the CLI13 ./eduberza -init 14 ./eduberza 18 15 ``` 19 20 Log in as `alice` / `test123` (also `bob`, `charlie` — same password).21 22 `./eduberza -init` is destructive and idempotent: it drops and recreates the23 `project` schema every time, so it is the reset button whenever a demo goes24 sideways. `./eduberza -load-data` reloads only the sample data.25 26 Optional — watch prices move while you trade, in a second terminal:27 28 ```sh29 go run ./bots30 ```31 32 ## Layout33 34 | Path | What |35 |------|------|36 | `server/` | CLI prototype — one file per use-case area |37 | `server/db/schema_creation.sql` | DDL: drops + recreates the `project` schema (P2) |38 | `server/db/data_load.sql` | DML: truncates + reloads sample data (P2) |39 | `bots/` | Market simulation bot — random-walk trades and 1m candles |40 | `docs/` | All phase documentation, ER diagram, use cases |41 42 Both SQL scripts are embedded into the binary at build time, so `-init` works43 from any working directory.44 45 ## Requirements46 47 Go 1.25+, Docker (or any reachable PostgreSQL 14+), and optionally `psql`.48 Editing the ER diagram additionally needs Java and TerraER — see49 [`docs/P4-Prototype/BuildInstructions.md`](docs/P4-Prototype/BuildInstructions.md).
Note:
See TracChangeset
for help on using the changeset viewer.
