Find a file
jomo 4bf4f754c9 add prefix to item id when using as html id
prevents accidental re-use of html ids
2022-08-05 02:13:23 +02:00
static add prefix to item id when using as html id 2022-08-05 02:13:23 +02:00
.dockerignore initial commit 2022-08-04 05:41:51 +02:00
.gitignore initial commit 2022-08-04 05:41:51 +02:00
crud.py initial commit 2022-08-04 05:41:51 +02:00
database.py initial commit 2022-08-04 05:41:51 +02:00
Dockerfile initial commit 2022-08-04 05:41:51 +02:00
main.py initial commit 2022-08-04 05:41:51 +02:00
models.py initial commit 2022-08-04 05:41:51 +02:00
README.md initial commit 2022-08-04 05:41:51 +02:00
requirements.txt initial commit 2022-08-04 05:41:51 +02:00
schemas.py initial commit 2022-08-04 05:41:51 +02:00

in?

A simple inventory system.

It uses fastapi, sqlalchemy and sqlite.

Run

docker build -t in .
docker run -p 127.0.0.1:8000:8000 -it in

Then visit http://127.0.0.1:8000/.

The database lives at inventory.sqlite3 (at /app/ inside the container).

Development

python -m pip install -r requirements.txt
uvicorn main:app --reload

API documentation is generated at http://127.0.0.1:8000/docs or http://127.0.0.1:8000/redoc.