pokego-serverless
pokego-serverless copied to clipboard
Serverless-powered API to fetch nearby Pokemon Go data
pokego-serverless
Overview
Serverless-powered API to fetch nearby Pokemon Go data. Currently returns mapPokemon, nearbyPokemon and wildPokemon.
Technologies used
Live Demo
https://1kse7tu24a.execute-api.us-east-1.amazonaws.com/dev/nearby?lat=-12.462827&lon=130.841782&alt=27.8
Adjust lat, lon and alt parameters as needed.
Please note that live demo is rate-limited ;)
Deploying to AWS
-
cp config.json_template config.json
- Update config.json with your Pokemon Go account details
-
npm install -g serverless@alpha
-
npm install
-
cp serverless.env.yaml_template serverless.env.yaml
-
serverless deploy
You will need to build/npm install against an Amazon Linux image on EC2 in order for the compiled node_modules to be usable on their Lambda service. See here for more information.