An open API service indexing awesome lists of open source software.

https://github.com/mysterious-ben/intro-website

A simple website powered by Flask
https://github.com/mysterious-ben/intro-website

flask plotly python website

Last synced: 3 months ago
JSON representation

A simple website powered by Flask

Awesome Lists containing this project

README

          

# intro-website
A very simple website powered by Flask and Dash

## Installation

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

**Development only**

4. Install packages (in an environment):
```shell script
pip -r requirements.txt
```
5. Initialize pre-commit:
```shell script
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).