• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Destiny Sets

Getting started

Just want to update the set data? You can skip this party

Prerequisites:

  • A fairly recent installation of Node - I use v8.9.3
  • Able to use Terminal/bash
  1. Copy .env.local-sample to .env.local and fill in REACT_APP_BUNGIE_CLIENT_ID and REACT_APP_API_KEY with your Bungie.net OAuth client_id and API Key (see below for how to get these)

  2. Install dependencies with npm install (or yarn install if you have Yarn)

  3. Run the local dev server with npm start (or yarn start if you have Yarn)

  4. You should see "Compiled successfully!", with instructions, and the site should open in your browser.

    • Note, as we're using HTTPS locally with a self-signed certificate, you'll get a security warning. You'll need to 'proceed anyway' to continue.

How to contribute to the set data

  1. Open the appropriate data file in src/setData
  2. Look at the structure of the data - it reflects the layout of each page on the site. Ultimately, items on the pages are specified in the items array, by their item hash (ID).
  3. Search for an item on the Data Explorer page on DestinySets.com, click the item and copy the hash - the number in the little box next to the item's name in the overlay.
    • e.g. The hash for "Contender's Shell" is 113124080.
  4. Paste the hash into the appropriate items array in the data file you're making the change to. Just make sure you keep the syntax valid, observing commas, etc. It's also nice to include the little // item name comment at the end of each line to make it easier for the next person
  5. Save the file and Submit the pull request via Github 🎉

If you're adding multiple items in one set, the Data Explorer has a special mode to make it easier. Click the "Explore the entire Destiny 2 database..." text at the top to enable "Collect Mode". Now, as you click an item it'll appear in the sidebar, automatically categorised, and copied to your clipboard in a format appropriate for the data files.

Getting API Keys from bungie.net

TODO: write this better

  1. New app at https://www.bungie.net/en/Application
  2. oauth client type: public
  3. redirect url: url the site is running at. for dev, this will probably be https://localhost:4000
  4. check all scopes, except for "Administrate groups and clans..."
  5. Origin Header: if it's just a key for local development, just enter * here

More Repositories

1

season-pass-extension

TypeScript
227
star
2

destinyPlumbing

Download and process Destiny item data from Bungie
JavaScript
43
star
3

GhostOverlay

"You're going to see a lot of things you won't understand"
C#
43
star
4

uber

Really quick and dirty scraper that pulls your trip data from Uber
CoffeeScript
36
star
5

tvos-au-vod

Apple TV TVML sample app
JavaScript
25
star
6

destinyDataExplorer

TypeScript
18
star
7

prom-destiny-exporter

TypeScript
9
star
8

friendgame.report

JavaScript
6
star
9

npm-emoji-package-generator

JavaScript
6
star
10

reactapus

Learning UniversalJS with React and Redux
JavaScript
5
star
11

seven

TypeScript
4
star
12

destiny-fragment-checker

JavaScript
4
star
13

destiny-dialogue-player

TypeScript
3
star
14

gifs

Mini web app to store and find gifs
CoffeeScript
3
star
15

nicepack

JavaScript
3
star
16

bungieapigo

Go
3
star
17

autopano

JavaScript
2
star
18

seven-archived

keep it secret, keep it safe
TypeScript
2
star
19

pgcr-crawler

Go
2
star
20

docs

Random assortment of cheat sheets and docs
2
star
21

dev2.braytech.org

JavaScript
2
star
22

destinyStats

JavaScript
1
star
23

speedlog

JavaScript
1
star
24

suraya

I'll tell you when you're older
JavaScript
1
star
25

bungie-firebase-auth

bungie-firebase-auth
JavaScript
1
star
26

github-notification-trigger

JavaScript
1
star
27

destiny-definitions-site

TypeScript
1
star
28

digital-first-cms

TypeScript
1
star
29

destinyData

Deprecated - AWS Lambda-friendly code to upload Destiny item data to S3
CoffeeScript
1
star
30

the-vault

help with raid callouts
JavaScript
1
star
31

AgileCards

JavaScript
1
star
32

destiny2-manifest

singleton for accessing the d2 manifest
JavaScript
1
star
33

clips-destiny

TypeScript
1
star