Small Flask, SQLite3, Bootstrap application that collected the submissions for ACE's Hacker Movie Still-Frame Trivia
git clone [email protected]:LaTechACE/trivia.git
cd trivia
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cp trivia.config.default trivia.config
nano trivia.config
export FLASK_APP=trivia
flask initdb
- Clone Git Repository
- Move into Application Directory
- Create Virtualenv
- Activate Virtualenv
- Install Application Dependencies
- Copy the default configuration to your own file
- Modify the copy of the default configuration
- database: The Database file to store submissions
- secret_key: Key to secure Admin authentication
- admin_user: Username to log in to the Admin page
- admin_pass: Password to log in to the Admin page
- Export FLASK_APP variable for flask command
- Initialize the Database
export FLASK_APP=trivia
export FLASK_DEBUG=1
flask run
- Export FLASK_APP variable with application name
- Export FLASK_DEBUG variable to turn debug on
- Run the app with flask