Sourcecode for PandLove website.
CSS PHP HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Onyx
app
bootstrap
config
database
public
resources
storage
tests
.env.example
.gitattributes
.gitignore
.gitlab-ci.yml
artisan
build_script.sh
composer.json
composer.lock
gulpfile.js
package.json
phpspec.yml
phpunit.xml
readme.md
server.php

readme.md

PandaLove Website (Destiny/H5/Xbox APIs)

build status license

PandaLove was a website devoted to tracking our weekly raid Tuesdays, PVP destruction and more. It quickly grew to be more than that.

Features

  • Destiny Stats
    • Trials of Orisis
    • Prison of Elders
    • Raids
    • PVP
  • Destiny Profile pages
  • Destiny Post Game Reports
  • Destiny XUR checks
  • Roster page for "PandaLove" clan
  • Comments
  • Xbox "Who is Online" checks
  • Halo 5 Stats
    • Post Game Carnage Reports (Arena/Warzone/FFA)
    • Historic Playlist history
    • Medal/Weapon counts
    • CSR Percentile
  • Halo 5 Profile pages
  • Calendar w/ RSVP support to attend events
  • Validation of Ownership of Destiny account
  • Admin Support via commands to API via Google Hangouts bot

How to install

  1. Get Composer
  2. Get NodeJs
  3. git clone git@github.com:iBotPeaches/PandaLove.git
  4. cd PandaLove
  5. composer install
  6. npm install
  7. npm install -g gulp
  8. cp .env.example .env
  9. Create a local database, MySQL preferred.
  10. Edit .env using those database credentials.
    1. Edit DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD.
  11. Get ready to go online and register for 3 API keys. Some sites don't have instant activation.
  12. Go here https://xboxapi.com/ - Get an XboxAPI API Key and put it in XBOXAPI_KEY in .env file.
  13. Go here https://www.bungie.net/en/User/API - Get a Destiny API Key and put it in BUNGIE_KEY in .env file.
  14. Go here https://developer.haloapi.com/ - Get a Halo API Key and put it in HALO5_KEY in .env file.
  15. php artisan migrate
  16. php artisan db:seed
  17. Now we need to utilize those APIs to get some data. If you don't have API keys for the above 3 systems. This will fail.
    1. php artisan halo5:batch-metadata
  18. Go here https://console.developers.google.com - "Create a Project"
    1. After creating project on Google Developer go to "Enable APIs and get credentials like keys"
    2. Find "Google+ API" and enable it. Then click on it. Click "Credentials" on sidebar.
    3. Create a "Web Application" application to get "ClientID", "Client Secret" and redirect URL.
    4. Redirect URL will be $URL/auth/callback. In the case of php serve - http://localhost:8000/auth/callback.
    5. Once created replace GOOGLE_REDIRECT with the RedirectURL in .env file.
    6. Replace GOOGLE_ID with the ClientID in .env file.
    7. Replace GOOGLE_SECRET with the Client Secret in .env file.
  19. gulp
  20. php artisan serve
  21. Click the GooglePlus sign in button on top navigation.
  22. (The first user to sign in automatically becomes admin)
  23. Sign in with GoogleAccount, this should prompt the sign in you made on previous steps.
  24. Now go to /usercp via gear icon in navigation.
  25. Add gamertag (assuming you play Xbox One - Destiny) to Destiny section.
  26. Add gamertag (assuming you play Xbox One - Halo5) to Halo 5 section.
  27. Celebrate.

Thanks