This project is based on the Laravel framework [v5.5].
Please read these instructions on how to configure your server to get started.
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
Docker setup (optional)
docker-compose up --build
docker exec -it ds bash
- continue with (install the framework) steps below. They will be ran inside the container that you did on step 2.
Install the framework
- Copy the file
.envwith any information needed (Bugsnag, environment, db information)
- Visit the Destiny API Registration Portal to sign up for an API key
- Add your key to
- Add your oauth information to
BUNGIE_CLIENT(client id) and
BUNGIE_SECRET(client secret) codes.
- Remember that the API key and oauth information need to be from same Application at Bungie.
php artisan key:generate
php artisan migrate
- Install yarn:
npm install -g yarn
- Install npm dependencies:
yarn run dev
yarn run prod
Things to know
DESTINY_CACHE_DEFAULTis 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.
PROXY_URLis 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.
BUGSNAG_API_KEYis for the Bugsnag service. This tracks all PHP/Destiny errors, this lets us quickly know what clan/profile/page is broken.
php artisan destiny:manifest --downloadwill force a redownload of the Manifest and process all entities into the file system.
php artisan destiny:medal [give|take] gamertag console badgeis the command for giving/taking badges. For example
php artisan destiny:medal give iBot xbl donatorgives iBot on Xbox Live the donator badge.