commit b4f8aacc91659128caa06281a20b2c7f718752f6 Author: iou1name Date: Wed Jan 16 09:33:36 2019 -0500 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c56bb68 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__/ +*.swp +*.swo diff --git a/README.md b/README.md new file mode 100644 index 0000000..e4886a4 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Aberrant +It's a WebGUI for rTorrent. + +## Requirements +Python 3.7+ +Python packages: `flask gunicorn` + +## Install +1. Get on the floor +2. Walk the dinosaur + +## Usage +`gunicorn -b localhost:5000 -e SCRIPT_NAME=/aberrant aberrant:app` + +## What's with the name? +Picked a random word from the dictionary desu. diff --git a/aberrant.py b/aberrant.py new file mode 100644 index 0000000..a10c728 --- /dev/null +++ b/aberrant.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +""" +The primary module for serving the Aberrant application. +""" +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def index(): + """The index page.""" + return render_template("index.html", **locals()) + +if __name__ == "__main__": + app.run(host='0.0.0.0', port=5000) diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..9a3ffff --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ + + + + Aberrant + + + +