Skip to content

mysterious-ben/intro-website

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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).

About

A simple website powered by Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages