DestinyStatus
This project is based on the Laravel framework [v7.x].
Understanding Branches
master
- developer branch of production destinystatus.com (automatic deploy)destiny1
- legacy version of d1.destinystatus.comlegacy
- original Laravel 4.2 version of d1 destinystatus
Project dependencies:
Install the framework
- Copy the file
.env.example
to.env
- Edit
.env
with any information needed (Bugsnag, environment, db information) - Visit the Destiny API Registration Portal to sign up for an API key
- Add your key to
.env
under theDESTINY_KEY
- Add your oauth information to
.env
under theBUNGIE_CLIENT
(client id) andBUNGIE_SECRET
(client secret) codes. - Remember that the API key and oauth information need to be from same Application at Bungie.
composer install
php artisan key:generate
php artisan migrate
Compile CSS/JS
- Install yarn.
- Install node dependencies:
yarn install
- Build:
- Local:
yarn run dev
- Production:
yarn run prod
- Local:
Things to know
-
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. -
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. -
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. -
php artisan destiny:manifest --download
will force a redownload of the Manifest and process all entities into the file system. -
php artisan destiny:medal [give|take] gamertag console badge
is the command for giving/taking badges. For examplephp artisan destiny:medal give iBot xbl donator
gives iBot on Xbox Live the donator badge.