first commit
This commit is contained in:
commit
b4f8aacc91
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
__pycache__/
|
||||
*.swp
|
||||
*.swo
|
16
README.md
Normal file
16
README.md
Normal 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
15
aberrant.py
Normal 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
8
templates/index.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Aberrant</title>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user