App for organizing book collection.
API documentation can be found here
- Create, read, update, delete users
- JWT Authentification
- Create, read, update, delete bookshelves that stores you book collection
- And of course you can add books by title in your collection, track number of readed pages in book
- Mac / Linux
- Docker version 23.0.5
- Docker Compose version v2.17.3
- GNU Make
- python = "^3.11"
- fastapi = "^0.97.0"
- aiohttp = "^3.8.4"
- alembic = "^1.11.1"
- SQLAlchemy = "^2.0.16"
- uvicorn = "^0.22.0"
-
Clone repository
git clone [email protected]:emp7yhead/bibliograph.git
-
Fill the
.env.example
file. You need to specify:SECRET_KEY
- secret key. That's it.POSTGRES_SERVER
- host and port of database. If you use docker compose set value todatabase
POSTGRES_DB
- database namePOSTGRES_USER
- database userPOSTGRES_PASSWORD
- password to database for specified user
-
Install all dependencies, run migrations and start server by executing command:
make run
-
Go to 0.0.0.0:5000
You always can use docker image for:
-
installation
docker pull emptyhead/bibliograph --platform linux/x86_64
-
applying migration
docker run -ti -p 5000:5000 emptyhead/bibliograph make migrate
-
run app
docker run -ti -p 5000:5000 emptyhead/bibliograph
But don't forget about environment variables when using docker.