Developing • Contributing • Production
Simple FastAPI-powered local caching for PDF files. Provides 1 day caching for PDF chart files for the LibreCharts infrastructure.
- 1 day caching of relevant chart files to ensure speed
- Fully asynchronous operation using
httpx
andfastapi
You can set up the webpage for development as follows. We recommend using a Python virtual environment:
pip install -r requirements.txt
uvicorn cache:cache --reload
You may view the contrubition guidelines in CONTRIBUTING.md.
If you wish to contribute charts please see the charts repository if you wish to contribute towards the webpage please see the webpage repository
We provide a docker-compose.yaml
file for running in production, you can run it as follows:
Summarized:
docker compose up -d
In our infrastructure we expose the cache to port 8000
which is then reverse-proxied to coincide with the appropriate domain.
If you'd like to run the cache on its own (at port 80) change docker-compose.yaml
from
ports:
- 8000:8000
to
ports:
- 8000:80