Last active
November 7, 2019 02:43
-
-
Save vs2961/f0679ce6f9d1f38ef6e75c42acc726a2 to your computer and use it in GitHub Desktop.
Script for running the environment for the attendance-scanner for Stuypulse 694.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FN_AUTH_REDIRECT_URI=http://localhost:5000/admin/google/auth | |
export FN_BASE_URI=http://localhost:5000/ | |
export FN_CLIENT_ID=YOUR_CLIENT_ID | |
export FN_CLIENT_SECRET=YOUR_SECRET | |
# Change this based on what you want to run | |
export FLASK_APP=admin.py | |
# export FLASK_APP=main.py | |
export FLASK_DEBUG=1 | |
export FN_FLASK_SECRET_KEY=A_SECRET_KEY # Can be done with the command import os; print(os.urandom(16)) in the python console | |
export GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_YOUR_CREDENTIALS | |
python -m flask run -p 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment