From 5dc6267cfce678df7e37f9ee082fc3418e55f667 Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 21 Oct 2024 22:52:38 +0200 Subject: [PATCH] docs: Add basic readme --- README.md | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index fc5861f..8011438 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,13 @@ # RatBot -``` -alembic init alembic -``` - -In alembic.ini, configure the database URL: -```ini -sqlalchemy.url = sqlite:///./test.db -``` - -`albemic/env.py` -```python -from models import Base -target_metadata = Base.metadata -``` - -**Make migrations** +Create database ```zsh -alembic revision --autogenerate -m "Create model XYZ" +ibot migrate ``` -**Migrate** +Run server ```zsh -alembic upgrade head +ibot runserver ``` + +Put images in `media/consume/`