Skip to content

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

  1. Run pip install lost-n-phoned

  2. 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, run export FLASK_APP=lostnphoned

  3. Run flask init-db

  4. Create a file called config.py inside the Flask instance directory (On Ubuntu this is .local/var/lostnphoned-instance/)

  5. Run python -c 'import os; print(os.urandom(16))' and put the output inside config.py like so:

SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/' # whatever your output was goes to the right of the equals sign
  1. Take your Google client_secret.json and place it in that same Flask instance directory

  2. Set up a WSGI and web server, and run the application

Clone this wiki locally