mirror of
https://gitlab.aachen.ccc.de/inventory/in.git
synced 2025-10-25 05:14:39 +02:00
A simple inventory system
| contrib | ||
| static | ||
| .dockerignore | ||
| .gitignore | ||
| crud.py | ||
| database.py | ||
| Dockerfile | ||
| LICENSE | ||
| main.py | ||
| models.py | ||
| README.md | ||
| requirements.txt | ||
| schemas.py | ||
in?
A simple inventory system.
It uses fastapi, sqlalchemy and sqlite.
Known forks
Run
docker build -t in .
docker run -p 127.0.0.1:8000:8000 -it in
Then visit http://127.0.0.1:8000/.
By default, the database lives at ./inventory.sqlite3 (at /app/ inside the container).
You can change the path using the environment variable IN_DATABASE_URL=sqlite:////path/to/in.sqlite3.
Development
python -m pip install -r requirements.txt
hypercorn main:app --reload
API documentation is generated at http://127.0.0.1:8000/docs or http://127.0.0.1:8000/redoc.