farridav / flask_friends

Test Google App Engine Project for storing facebook friends

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Friends

A test project made of the following components:

  • Flask
  • Bootstrap3
  • ReactJS

Designed to be deployed to Googles app engine, the project is far from complete, but lives to serve its purpose as a demonstration of skills.

Getting Started

Google App Engine (GAE)

This project has been built to work with Google App Engine, to interact with this in development ensure you Install the following SDK's:

https://cloud.google.com/sdk/#deb
https://cloud.google.com/appengine/downloads

And setup gcloud with:

gcloud init

Configuration

Make sure the following environment variables have been set in src/env.yaml:

APP_SECRET_KEY: 'my-secret-key'
FB_APP_ID: 'yourappid'
FB_APP_SECRET: 'your app secret'
SDK_PATH: '/path/to/google_appengine/'

And for running the tests, we will need a similar file, called src/test_env.yml, this should contain values sane enough for testing with

N.B - These values will change for production and development, and are kept out of version control

Static files/libs

./update

Running

To run this project with all of the mock appengine resources from the appengine SDK, use:

dev_appserver.py src/

Testing

Run flake8, and the tests with:

./src/runtests.py

Deploying

To ship the new version of your application, bump the version in src/app.yaml and:

appcfg.py update -A flask-friends -V v<new_version no> src/

And to switch it over:

appcfg.py set_default_version -V v<new_version no> -A flask-friends

About

Test Google App Engine Project for storing facebook friends


Languages

Language:Python 74.6%Language:HTML 13.7%Language:JavaScript 5.9%Language:CSS 4.0%Language:Shell 1.8%