songs2slides

A tool that automatically finds song lyrics and creates lyric slideshows
git clone https://git.ashermorgan.net/songs2slides/
Log | Files | Refs | README

commit 42ddf7cfd1f3b6a7547dc0ebc3484970b6ad8d20
parent 2b6f2c24ce026d93da8a4bc3240943c214f1990d
Author: ashermorgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Fri, 23 Feb 2024 18:12:53 -0800

Add basic flask app

Diffstat:
Mrequirements.txt | 1+
Asongs2slides/__init__.py | 9+++++++++
Asongs2slides/routes.py | 5+++++
3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/requirements.txt b/requirements.txt @@ -1,3 +1,4 @@ +flask python-dotenv python-pptx requests diff --git a/songs2slides/__init__.py b/songs2slides/__init__.py @@ -0,0 +1,9 @@ +from flask import Flask + +def create_app(): + app = Flask(__name__) + + with app.app_context(): + from songs2slides import routes + + return app diff --git a/songs2slides/routes.py b/songs2slides/routes.py @@ -0,0 +1,5 @@ +from flask import current_app as app + +@app.route('/') +def index(): + return '<p>Hello world</p>'