Worship Slide Generator provides a simple point-and-click interface for creating worship slides easily and on-the-go.
The live version of the site can be found at https://praise-the-lord.herokuapp.com.
- Clone the repo.
git clone https://github.com/helloqx/worship-slide-generator.git
- Set up a virtual environment if needed.
python3 -m venv venv
(Mac): source venv/bin/activate
(Windows): venv\Scripts\activate
- Install the required libraries.
pip install -r requirements.txt
- Set the environment variable. It is suggested to put these lines inside
venv/bin/activate
orvenv\Scripts\activate.bat
for convenience.
(Mac): export FLASK_APP=main.py
(Windows): set FLASK_APP=main.py
- Edit the
RESET_DATABASE
in./config.py
to read:
RESET_DATABASE = os.environ.get('RESET_DATABASE') or "True"
and populate the database with
python song_populator.py
- Launch the site. The site should be live at
localhost:5000
.
flask run
All songs are stored as a single database object, with lyric slides seperated by two newlines \n\n
.
is_admin
will be modified to a role string soon. Latest slides are stored as a string of song ids.