-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up Local Environment
rdixit3 edited this page Mar 7, 2017
·
1 revision
This wiki page explains how to set up the local environment on TerpDAC's pythonanywhere account
- Install Python 3.5+.
- Install Github.
- Use Github to download latest code.
- Open a console and change into your SensorWebsite directory.
- Run the following command:
pip install -r requirements.txt - Create instance folder in MicSenseWeb.
- Enter the instance folder and create file config.py.
- Edit the config.py file with the following
# This should NEVER be uploaded to version control
# DBTYPE+PYDBENGINE://USERNAME:PASSWORD@SERVER_HOSTNAME/DATABASE_NAME
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://USERNAME:PASSWORD@DATABASE_SERVER/DATABASE_NAME"
- Create account on www.db4free.net.
- Get database credentials from website.
- Insert credentials into config.py.
- Run run_micsense.py
- If doesn't work, double check credentials.