Skip to content

mediacloud/vitals-api

Repository files navigation

FastAPI server for Media Cloud public dashboard

Script MUST run on same server as dokku statsd/graphite/grafana service container

To test code in development:

  • Run make install to create virtual environment
  • . venv/bin/activate to activate venv
  • ./test.sh to run api.py outside docker

To lint/check code before commit, run make lint

To add new requirements:

  • Add to pyproject.toml
  • Run make requirements
  • commit pyproject.toml and requirements.txt to git

To setup dokku staging-vitals-api

  • ./setup.sh staging

To setup dokku production vitals-api

  • ./setup.sh prod

To test code in staging

(NOTE: there are no prod/staging branches)

  • git push dokku_staging

To deploy code for production

(NOTE: there are no prod/staging branches)

  • git push dokku_prod

About

FastAPI server for Media Cloud Vitals page

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors