Skip to content

AndriiOmelianenko/nyc-subway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nyc-subway

NYC subway application for Google Cloud App Engine.

1

2

Implemented with this lab

Local run

configure local app engine

wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_amd64-1.9.64.zip
unzip go_appengine_sdk_darwin_amd64-1.9.64.zip
rm go_appengine_sdk_darwin_amd64-1.9.64.zip

# fix python env to use python2.7
sed -i "" "s/env python/env python2.7/" go_appengine/dev_appserver.py
export PATH=$PATH:$(pwd)/go_appengine/

install golang dependencies

Install go packages required for the back-end:

go get github.com/paulmach/go.geojson
go get github.com/dhconnelly/rtreego
go get github.com/smira/go-point-clustering

run app

dev_appserver.py app.yaml

see the results

Navigate to http://localhost:8080

additional

$ curl localhost:8080/hello
Hello, world!

$ curl localhost:8080/version
Version: 1.0.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published