dphuang2 / PoGoBag

Analyze and share your Pokémon through a locally run server! Official Site access has been stopped as of 12/23/2016
146 stars 49 forks source link

PoGoBag

Analyze and Share your PokemonGo Inventory online!

Feel free to contribute and make pull request.

Use this at your own risk. PoGoBag is most likely against Niantic ToS. The owner is not responsible for the ramifications of using this project in any way

To Setup:

Requirements

Windows:

1) Install Ruby 2.2.5 http://rubyinstaller.org/downloads/
x64 for 64-bit system and regular install for 32-bit system
2) Install Ruby DevKit http://rubyinstaller.org/downloads/
Same link but at the bottom. Follow same logic for x64 as the above step
2a) Create a new directory to extract the Ruby DevKit into 2b) Run these commands:

cd <RubyDev Path>
ruby dk.rb init
ruby dk.rb install

3) Install Node.js 4.4.7 https://nodejs.org/en/
4) Install Git https://git-scm.com/downloads
5) Run these two commands in terminal:

gem install rails
gem install bundler
Mac:

1) Install Ruby with RVM

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew -v
brew doctor
\curl -L https://get.rvm.io | bash -s stable
rvm install 2.3.1
rvm use 2.3.1 --default
ruby -v

2) Install Node.js: "brew install node"
3) Install Git: "brew install git"
4) Run these two commands:

gem install rails
gem install bundler
Ubuntu Server (16.04):

1) Install Ruby and Ruby dev

sudo apt-get install ruby ruby-dev -y

2) Install Node.js

sudo apt-get install nodejs -y

3) Install git

sudo apt-get install git -y

4) Run these two commands:

gem install rails
gem install bundler

Steps

1) Open terminal and change direcotry into whichever directory you want to place the project in: "cd ~" (for home directory)
2) In that directory, clone the project

git clone https://github.com/dphuang2/PoGoBag.git 

3) change directory into the project: "cd PoGoBag"
4) Install all dependencies:

bundle install --without production

5) Run database setup and start the server

rake db:setup
rails s

6) Open your browser and navigate to http://localhost:3000
7) Login and browse your Pokemon!

Imgur

How to setup auto refresh:

1) Run "whenever -w" inside of the project directory

How to access remotely (with ngrok):

1) Download ngrok from https://ngrok.com/download
2) Unzip and put ngrok inside of the same directory as PoGoBag
3) Run "rails s" as usual inside of the project directory
4) Open a new terminal or tab and cd into the project directory
5) Run "./ngrok http 3000"
6) Use the link under "Forwarding" to connect remotely
Imgur

Screenshots:

Imgur Imgur

Credits:

nabeelamjad - For the API