FedericoPonzi / Isitdown.site

The source code for isitdown.site web application.

Home Page:https://isitdown.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

The source code for isitdown.site web application.

https://isitdown.site

License:Apache License 2.0


Languages

Language:HTML 51.5%Language:Python 35.7%Language:CSS 10.9%Language:Mako 0.9%Language:Shell 0.7%Language:Dockerfile 0.3%