Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

FedericoPonzi/Isitdown.site

Repository files navigation

Isitdown.site

Build Status codecov

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.

Development

Requirements:

  • PostreSQL (or at least SQLite)
  • Python >= 3.5 Setup:
  • Create a user and a database for isitdown.site
  • run ./build.sh to create the virtual environment and download the required packages.
  • use source .venv/bin/activate to activate the virtual environment
  • Add the database connection uri as environment variable: export ISITDOWN_DATABASE_URI=postgresql://username:password@localhost/database. You can also use ISITDOWN_PORT variable to override the default listening port (5000).
  • use FLASK_APP=isitdown.dex.py flask run to run the site.
  • use python -m pytest to run the tests suite.

Deployment

I've attached flask.wsgi.template used to install it within apache web server.

Environment variables

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

License

Please check the LICENSE file.