Skip to content

mysterious-ben/intro-website

Repository files navigation

intro-website

A very simple website powered by Flask and Dash

Installation

  1. Clone the project
git clone https://github.com/mysterious-ben/intro-website
cd intro-website
  1. Check / update the public config src/config.py
  2. Create the private config src/__config.py

Development only

  1. Install packages (in an environment):
pip -r requirements.txt
  1. Initialize pre-commit:
pre-commit install

Start Server

  • Option 1: Run in an environment: make start

    • to downgrade priority below -10 (soft CPU limit): nice -n 0 python -m src.app
    • to limit RAM to 500MB: ulimit -v 500000 && python -m src.app
    • show logs: make show-logs
  • Option 2: Run in a docker container: make dc-start

    • show logs: make dc-show-logs

Check Website Visit Stats

Go to the flask_monitoringdashboard subpage (credentials are required).

Releases

No releases published

Packages

No packages published

Languages