https://github.com/jch254/pokego-serverless
Serverless-powered API to fetch nearby Pokemon Go data
https://github.com/jch254/pokego-serverless
aws-lambda immutablejs pokemon pokemongo serverless
Last synced: 11 months ago
JSON representation
Serverless-powered API to fetch nearby Pokemon Go data
- Host: GitHub
- URL: https://github.com/jch254/pokego-serverless
- Owner: jch254
- Created: 2016-07-28T01:44:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-03T12:34:36.000Z (over 9 years ago)
- Last Synced: 2025-03-28T20:51:15.313Z (12 months ago)
- Topics: aws-lambda, immutablejs, pokemon, pokemongo, serverless
- Language: JavaScript
- Size: 1.95 KB
- Stars: 24
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pokego-serverless

## Overview
Serverless-powered API to fetch nearby Pokemon Go data. Currently returns mapPokemon, nearbyPokemon and wildPokemon.
Technologies used
* [Serverless v1.0](https://github.com/serverless/serverless/tree/v1.0/)
* [Poke.io](https://github.com/Armax/Pokemon-GO-node-api)
* [Immutable](https://github.com/facebook/immutable-js/)
## 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](https://aws.amazon.com/blogs/compute/nodejs-packages-in-lambda/) for more information.
## Good times!