Code Monkey home page Code Monkey logo

destinystatus's Introduction

DestinyStatus

Join the chat at https://gitter.im/TrackerNetwork/DestinyStatus Build Status

This project is based on the Laravel framework [v5.5].

Please read these instructions on how to configure your server to get started.

Understanding Branches

  • master - developer branch of production destinystatus.com
  • destiny1 - legacy version of d1.destinystatus.com
  • legacy - original Laravel 4.2 version of d1 destinystatus
  • production - production destinystatus.com (follows master)

Project dependecies:

  • PHP >= 7.0
    • zip extension
    • sqlite3 extension
  • Mcrypt extension
  • Node.js
  • Composer

Install the framework

  1. Copy the file .env.example to .env
  2. Edit .env with any information needed (Bugsnag, environment)
  3. Visit the Destiny API Registration Portal to sign up for an API key
  4. Add your key to .env under the DESTINY_KEY
  5. Add your oauth information to .env under the BUNGIE_CLIENT (client id) and BUNGIE_SECRET (client secret) codes.
  6. Remember that the API key and oauth information need to be from same Application at Bungie.
  7. composer install
  8. php artisan key:generate

Compile CSS/JS

  1. Install yarn: npm install -g yarn
  2. Install npm dependencies: yarn install
  3. Build:
    • Local: yarn run dev
    • Production: yarn run prod

Things to know

  1. DESTINY_CACHE_DEFAULT is the default for endpoint caches. We tend to use 5 minutes. That is enough time for people to load a profile, spam a few clicks around the site and keep getting fed cache values instead of API. Any value over 5 minutes adds a message to the homepage explaining the reason for out of date stats.

  2. PROXY_URL is the URL to a service that takes a request and simply proxies it onward, this allows us to get around API limits as a server side application cannot issue requests as fast as the users use the product.

  3. BUGSNAG_API_KEY is for the Bugsnag service. This tracks all PHP/Destiny errors, this lets us quickly know what clan/profile/page is broken.

  4. php artisan destiny:manifest --download will force a redownload of the Manifest and process all entities into the file system.

  5. php artisan destiny:medal [give|take] gamertag console badge is the command for giving/taking badges. For example php artisan destiny:medal give iBot xbl donator gives iBot on Xbox Live the donator badge.

destinystatus's People

Contributors

ibotpeaches avatar gmsteuart avatar

Watchers

James Cloos avatar Luis Gomes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.