-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Keane Nguyen edited this page Jul 20, 2018
·
4 revisions
Todo: Explain how to set up Twilio account, Google developer project, and how to connect the server to the internet using ngrok or a domain. Explain how to generate an app.secret_key
-
Run
pip install lost-n-phoned
-
If you're on cmd, run
set FLASK_APP=lostnphoned
If you're on PowerShell, run$env:FLASK_APP = "lostnphoned"
If you're on Bash, runexport FLASK_APP=lostnphoned
-
Run
flask init-db
-
Create a file called
config.py
inside the Flask instance directory (On Ubuntu this is.local/var/lostnphoned-instance/
) -
Run
python -c 'import os; print(os.urandom(16))'
and put the output insideconfig.py
like so:
SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/' # whatever your output was goes to the right of the equals sign
-
Take your Google client_secret.json and place it in that same Flask instance directory
-
Set up a WSGI and web server, and run the application