This is the source code for isitdown.site
It's made with:
- Flask (python3.5),
- PostgreSQL,
- HTML5/CSS (with HTML5 boilerplate)
- Was hosted on Heroku (<3 for them) but now it's hosted on Linode (<3 for them too)
Please note: The logo is handmade by Antonio Di Rosso so you can not use it in other projects.
Requirements:
PostreSQL(or at leastSQLite)Python >= 3.5Setup:- Create a user and a database for
isitdown.site - run
./build.shto create the virtual environment and download the required packages. - use
source .venv/bin/activateto activate the virtual environment - Add the database connection uri as environment variable:
export ISITDOWN_DATABASE_URI=postgresql://username:password@localhost/database. You can also useISITDOWN_PORTvariable to override the default listening port (5000). - use
FLASK_APP=isitdown.dex.py flask runto run the site. - use
python -m pytestto run the tests suite.
I've attached flask.wsgi.template used to install it within apache web server.
ISITDOWN_DATABASE_URI: The database connection string.ISITDOWN_PORT: The port to listen onFLASK_ENV: Withdevelopment, it will print useful debug messages.
Please check the LICENSE file.