diff --git a/app.py b/app.py index 9118387..de3ce5f 100644 --- a/app.py +++ b/app.py @@ -4,26 +4,8 @@ app = Flask(__name__) @app.route('/') -def home(): # put application's code here +def hello_world(): # put application's code here return render_template('home.html') - -@app.route('/random') -def random_image(): - # TODO Implement - return NotImplementedError - - -@app.route('/daily') -def daily_image(): - # TODO Implement - return NotImplementedError - - -@app.route('/all') -def all_images(): - # TODO Implement - return NotImplementedError - if __name__ == '__main__': app.run(host='0.0.0.0') diff --git a/db/connector.py b/db/connector.py deleted file mode 100644 index e262970..0000000 --- a/db/connector.py +++ /dev/null @@ -1,17 +0,0 @@ -import os - -from sqlalchemy import create_engine - -user = os.environ['DB_USER'] -password = os.environ['DB_PASSWORD'] -host = os.environ['DB_HOST'] -port = os.environ['DB_PORT'] -database = os.environ['DB_DATABASE'] - - -def get_connection(): - return create_engine( - url="mysql+pymysql://{0}:{1}@{2}:{3}/{4}".format( - user, password, host, port, database - ) - ) diff --git a/db/model/image_table.py b/db/model/image_table.py deleted file mode 100644 index a6af713..0000000 --- a/db/model/image_table.py +++ /dev/null @@ -1,18 +0,0 @@ -import sqlalchemy as db - -from db import connector - -engine = connector.create_engine - -metadata_obj = db.MetaData() - -profile = db.Table( - 'images', - metadata_obj, - db.Column('id', db.Integer, primary_key=True), - db.Column('location', db.String), - db.Column('copyright', db.String), - db.Column('date_added', db.TIMESTAMP), -) - -metadata_obj.create_all(engine) diff --git a/static/css/styles.css b/static/css/styles.css deleted file mode 100644 index 9923b26..0000000 --- a/static/css/styles.css +++ /dev/null @@ -1,26 +0,0 @@ -body { - background-image: url("/random"); - height: 100vh; - width: 100vw; -} -body nav { - display: flex; - flex-direction: row; - justify-content: center; - background: rgba(0, 0, 0, 0.4); - width: 100vw; - padding: 0 20px; -} -body nav ul > li { - color: white; -} -body nav ul > li :hover { - color: #13678A; - animation: ease-in; -} -body h1 { - margin: auto; - text-align: center; -} - -/*# sourceMappingURL=styles.css.map */ diff --git a/static/css/styles.css.map b/static/css/styles.css.map deleted file mode 100644 index c3ba649..0000000 --- a/static/css/styles.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sourceRoot":"","sources":["styles.scss"],"names":[],"mappings":"AAGA;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEA;EACE,OAnBD;EAoBC;;AAKN;EACE;EACA","file":"styles.css"} \ No newline at end of file diff --git a/static/css/styles.scss b/static/css/styles.scss index e08a537..e69de29 100644 --- a/static/css/styles.scss +++ b/static/css/styles.scss @@ -1,31 +0,0 @@ -// Variables -$blue: #13678A; - -body { - background-image: url("/random"); - height: 100vh; - width: 100vw; - - nav { - display: flex; - flex-direction: row; - justify-content: center; - background: rgba(0, 0, 0, 0.4); - width: 100vw; - padding: 0 20px; - - ul > li { - color: white; - - :hover { - color: $blue; - animation: ease-in; - } - } - } - - h1 { - margin: auto; - text-align: center; - } -} \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index 7a52053..001d90f 100644 --- a/templates/home.html +++ b/templates/home.html @@ -3,17 +3,8 @@