intro-website
A very simple website powered by Flask and Dash
Installation
- Clone the project
git clone https://github.com/mysterious-ben/intro-website
cd intro-website
- Check / update the public config
src/config.py
- Create the private config
src/__config.py
Development only
- Install packages (in an environment):
pip -r requirements.txt
- 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
- to downgrade priority below -10 (soft CPU limit):
-
Option 2: Run in a docker container:
make dc-start
- show logs:
make dc-show-logs
- show logs:
Check Website Visit Stats
Go to the flask_monitoringdashboard
subpage (credentials are required).