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

FedericoPonzi/Isitdown.site

Folders and files

NameName
Last commit message
Last commit date
Sep 29, 2020
Jul 6, 2021
Jan 28, 2019
Sep 29, 2020
Jan 2, 2020
Feb 28, 2020
Jun 15, 2017
Sep 29, 2020
Sep 29, 2020
Jun 19, 2017
Feb 16, 2020
Jan 2, 2020
Jun 16, 2019
Jun 2, 2022
Sep 29, 2020
Sep 29, 2020

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.