- Make sure you have
npm
installed cd
intojs-src/
- Run
npm install
(this might take a while the first time) - Run
npm run dev-build
(this will build the js files into /python-src/webapp and keep it up to date ) - Start up the backend and navigate to the local GAE server instance
- make sure you have postman, python 2.7, pip and the app engine python dev kit installed (https://cloud.google.com/appengine/docs/python/download - WARNING: you have to click "Optionally, you can also download the original App Engine SDK for Python.")
- open a terminal window and go the python-src directory
- install dependencies by running
pip install -r requirements.txt -t lib
- start local development server
dev_appserver.py .
- import postman collections from ./doc/postman/ into postman and set up a
url
environment variable (should probably be http://localhost:8080) - run the "Pin the World - Cities" collection to create some cities
- run the "Pin the World - Test All" collection (all tests should succeed)
- open a browser and navigate to the local GAE server to open the frontend (http://localhost:8080)
webpack.dev.js - 2 lines were modified, 10% in this file
vendor.js - 2 lines were modified, 22% in this file
webpack.common.js - 10 lines were modified, 18% in this file
webpack.test.js - 5 lines were modified, 14% in this file
main.js - 4 lines were modified, 44% in this file
Source: https://angular.io/docs/ts/latest/guide/webpack.html (Angular version ~2.1.0, webpack version: ^1.13.0)
package.json - 11 lines modified, 17% in this file
app.yaml - 7 lines were added to default file from https://github.com/GoogleCloudPlatform/python-docs-samples
appengine_config.py - source: https://stackoverflow.com/questions/4863557/ and https://github.com/gae-init/gae-init/pull/527
index.yaml - autogenerated by GAE python SDK
- see package.json for all other sourceC files and specific versions of used npm packages
- flask library version used (installed via pip requirements.txt) is 0.11.1, flask-restfull 0.3.5
- files in the sourceC/javascript files are from https://angular.io/docs/ts/latest/guide/webpack.html (Angular version ~2.1.0, webpack version: ^1.13.0)