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
Copy file name to clipboardexpand all lines: README.md
+44-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ graph TD;
8
8
```
9
9
10
10
##Setup
11
-
This is a standard flask app that utilizes Flask-migrate (sqlalchemy + alembic).
11
+
This is a standard flask app that utilizes [Flask-migrate](https://flask-migrate.readthedocs.io/en/latest/index.html) ([sqlalchemy](https://www.sqlalchemy.org/) + [alembic](https://alembic.sqlalchemy.org/en/latest/)).
12
12
It requires a database to be set up.
13
13
To set it up, use the initialization script - `scripts/db_init/init-user-db.sh`.
14
14
For a testing setup, you can setup a postgres db container with the schema precreated by running the `scripts/db_init_setup_db.sh` script.
@@ -26,3 +26,46 @@ start the app:
26
26
flask --app rekuper run
27
27
```
28
28
The server uses port `5000` by default. The swagger UI should be accessible as a root page.
29
+
30
+
## Container setup
31
+
Assumuing the database is also going to be run as local container:
> At this point, you started an unitialized database. You have to initialize it by running the migration scripts. For this purpose, we'll run a 1-shot `rekuper` container and override the default command
47
+
>This should be use also on an initialized db every time there is a new migration.
0 commit comments