Are-You-OK is a Flask-based, responsive Web App to monitor whether the Internet Service you care about is still working.
Before using this project, please make sure you have:
- Python
- Flask
To use it, you should first clone the repo on your device using the command below:
git clone https://github.com/qyxtim/Are-You-OK.git
Then, cd
into the directory you want to access and use the command below to set up your database, and administrator username and password:
python init_db.oy
Then, just type flask run
and enjoy.
The implementation of this Web App is split into five files:
init_db.py
initializes the databaseapp.py
is in charge of using flask to create correct routinglogin.py
provides the functionality to check whether the user is logged innetwork.py
provides two functions.is_valid_url
is used to check the validity of the user's input url.ping
is used to check whether the online service is still workingdb.py
enables the database to be opened by Context Manager
- Error Handling
- Delete websites added before