Beacuse life is short, use Python
-
http://cloud-datastore-alpha.appspot.com/ [Cloud Datastore]
-
https://lookingbus-alpha.appspot.com/ [Cloud SQL]
-
Python 2.7.15
-
Install packages in requirements.txt
pip install -r requirements.txt
- Configure cloud_sql_instance name in app.yaml:
beta_settings:
cloud_sql_instances: project-name:region-name:instance-name
- Configure database credentials:
app.config['MYSQL_UNIX_SOCKET'] = "/cloudsql/project-name:region-name:instance-name"
app.config['MYSQL_USER'] = database username
app.config['MYSQL_PASSWORD'] = database user password
app.config['MYSQL_DB'] = database name
- Comment out line 13 in main.py
appengine.monkeypatch()
- Configure SQL connection:
app.config['MYSQL_HOST'] = localhost
- Run
python main.py
- Run
gcloud app deploy
```
app.config["GOOGLE_OAUTH_CLIENT_ID"] = Add google client API key
app.config["GOOGLE_OAUTH_CLIENT_SECRET"] = Add google client secret API key
app.config["FACEBOOK_OAUTH_CLIENT_ID"] = Add google client API key
app.config["FACEBOOK_OAUTH_CLIENT_SECRET"] = Add google client secret API key
```
- Run
python flaskunitests.py
This project is licensed under the MIT License - see the LICENSE.md file for details