Skip to content

librecharts/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-image

LibreCharts Cache Server

DevelopingContributingProduction

Simple FastAPI-powered local caching for PDF files. Provides 1 day caching for PDF chart files for the LibreCharts infrastructure.

Features

  • 1 day caching of relevant chart files to ensure speed
  • Fully asynchronous operation using httpx and fastapi

Contributing

Setting up for development

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

Contribution guidelines

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

Production

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published