pokego-serverless

Pokemon

Overview

Serverless-powered API to fetch nearby Pokemon Go data. Currently returns mapPokemon, nearbyPokemon and wildPokemon.

Technologies used

Live Demo

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

  1. cp config.json_template config.json
  2. Update config.json with your Pokemon Go account details
  3. npm install -g serverless@alpha
  4. npm install
  5. cp serverless.env.yaml_template serverless.env.yaml
  6. 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.

Good times!