You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 🔄 **Automated Pipeline** - Continuous integration with Black, Flake8, and automated testing
26
26
27
27
## Tech Stack
@@ -171,6 +171,10 @@ uv pip install --group dev
171
171
### Run
172
172
173
173
```bash
174
+
# Apply database migrations (required once before the first run, and after
175
+
# docker compose down -v)
176
+
uv run alembic upgrade head
177
+
174
178
uv run uvicorn main:app --reload --port 9000
175
179
```
176
180
@@ -190,7 +194,7 @@ Once the application is running, you can access:
190
194
docker compose up
191
195
```
192
196
193
-
> 💡 **Note:** On first run, the container copies a pre-seeded SQLite database into a persistent volume. On subsequent runs, that volume is reused and the data is preserved.
197
+
> 💡 **Note:** On first run, the entrypoint applies Alembic migrations (`alembic upgrade head`), which creates the database and seeds all 26 players. On subsequent runs, migrations are a no-op and the volume data is preserved.
194
198
195
199
### Stop
196
200
@@ -200,7 +204,7 @@ docker compose down
200
204
201
205
### Reset Database
202
206
203
-
To remove the volume and reinitialize the database from the built-in seed file:
207
+
To remove the volume and re-apply migrations from scratch on next start:
0 commit comments