Prerequisites:
- A fairly recent installation of Node - I use v18.14.0
Steps:
- Copy
.env.local-sample
to.env.local
and fill inREACT_APP_BUNGIE_API_KEY
,REACT_APP_BUNGIE_OAUTH_CLIENT_ID
andREACT_APP_BUNGIE_OAUTH_CLIENT_SECRET
with the values from your Bungie.net application (see below for instructions) - Install dependencies with
npm install
- Run the local dev server with
npm start
- You should see "Compiled successfully!"
- Go to https://localhost:3000 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.
- Create a new app at https://www.bungie.net/en/Application
- OAuth Client Type: Confidential
- Redirect URL: Enter the URL the site is running at. For local development, this will probably be https://localhost:3000
- Scope: Check "Read your Destiny 2 information (Vault, Inventory, and Vendors), as well as Destiny 1 Vault and Inventory data"
- Origin Header: Enter the URL the site is running at. For local development, use a value of
*