Skip to content

christian179717/an-website

 
 

Repository files navigation

Webseite des AN

Deploy Check code Check emoji Code coverage Code style: black Imports: isort

How to develop

You need:

  • python3.10
  • git
  • packages from requirements.txt (pip install -r requirements.txt)
  • packages from requirements-dev.txt (pip install -r requirements-dev.txt)

How to check

  • ./check.sh

How to format

  • python -m black an_website tests

How to run

  • python -X dev -m an_website (-X dev is for debugging)

How to run (production)

Linux (tested with arch):

You need:

  • python3.10
  • packages from requirements.txt
  • supervisord
  • redis
  • redis-cell (for ratelimits)
  • uwufetch
  • git

How

  • clone this repo in the home directory of a user
  • (if necessary) add the following at the end of /etc/supervisord.conf
  [include]
  files = /etc/supervisor.d/*.ini
  • (if necessary) create /etc/supervisor.d/
  • run restart.sh as the user of the home directory

Windows

Why?

FreeBSD

should work similar to linux /etc/supervisord.conf -> /usr/local/etc/supervisord.conf /etc/supervisor.d/*.ini -> /usr/local/etc/supervisor.d/*.ini /etc/supervisor.d/ -> /usr/local/etc/supervisor.d/ restart.sh: /etc/supervisor.d/$SERVICE_FILE_NAME -> /usr/local/etc/supervisor.d/$SERVICE_FILE_NAME

MacOS

Why? (same as FreeBSD, probably)

About

Rewrite of the websites in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 77.7%
  • HTML 9.5%
  • JavaScript 7.9%
  • CSS 4.0%
  • Shell 0.9%