first commit

This commit is contained in:
iou1name 2019-01-16 09:33:36 -05:00
commit b4f8aacc91
4 changed files with 42 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
__pycache__/
*.swp
*.swo

16
README.md Normal file
View File

@ -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.

15
aberrant.py Normal file
View File

@ -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)

8
templates/index.html Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Aberrant</title>
</head>
<body>
</body>
</html>