start db work

This commit is contained in:
n 2025-02-04 15:19:10 -06:00
parent e785b1c27e
commit 9753b3e6a9
2 changed files with 4 additions and 1 deletions

View file

@ -14,5 +14,5 @@ currently, there's no reason to run this except for development. however, if you
1. clone the repository 1. clone the repository
2. copy `src/toastbin/config.sample.json` to `src/toastbin/config.json` 2. copy `src/toastbin/config.sample.json` to `src/toastbin/config.json`
3. install dependencies (currently, we just need `flask` but this almost absoultely will change) 3. install dependencies (currently, we just need `flask` and `sqlalchemy` from python and `postgresql` from the system repos but this almost absoultely will change)
4. run `src/toastbin/app.py` (`python3 src/toastbin/app.py`) 4. run `src/toastbin/app.py` (`python3 src/toastbin/app.py`)

3
src/toastbin/database.py Normal file
View file

@ -0,0 +1,3 @@
import sqlalchemy
engine = sqlalchemy.create_engine('postgresql://') # todo: finish this, give users options maybe