The source code for isitdown.site web application.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
isitdown
migrations
tests
.gitignore
.htaccess
.travis.yml
LICENSE
README.md
build.sh
flask.wsgi.template
requirements.txt

README.md

Isitdown.site

Build Status codecov

This is the source code for isitdown.site

It's made with:

  • Flask (python3),
  • 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 should not use it in other projects.

Installation

  • You should have Postresql and Python 3.6 installed.
  • Create a user and a database for isitdown.site, and import the isitdown.db file.
  • Give build.sh run permissions: chmod +x build.sh
  • Open a terminal, and run ./build.sh to create the virtual environment and download the required packages.
  • Type source .venv/bin/activate to activate the virtual environment
  • Add the database connection uri as enviornment variable: export DATABASE_URI=postgresql://username:password@localhost/database. You can add a PORT variable to ovverride the default listening port (5000).
  • Finally, run python3 index.py to run the site.

There is also a flask.wsgi.template used to install it in apache.

Environment

  • DATABASE_URI: The database connection string.
  • PORT: The port to listen on
  • FLASK_ENV: With development, it will print useful debug messages.

License

Please check the LICENSE file.