D2ArmorPicker is a small tool to min-max your armor stats with only a few clicks. Visit the page here: https://d2armorpicker.com
- Run
npx husky-init && npm installto install dependencies. - Duplicate the
.env_exampleto.env_dev. - Create a Bungie API key. For this, head over to https://www.bungie.net/en/Application and create a new application.
- Set the OAuth Client Type to
Confidentialand the redirect URL tohttps://localhost:4200/. - Select the Scopes
Read your Destiny 2 informationandMove or equip Destiny gear and other items. - Set
Origin Headertohttps://localhost:4200. - Copy the API key and paste it to
D2AP_BUNGIE_API_KEYin the.env_devfile. - Copy the OAuth client_id and paste it to
D2AP_BUNGIE_CLIENT_IDin the.env_devfile. - Copy the OAuth client_secrety and paste it to
D2AP_BUNGIE_CLIENT_SECRETin the.env_devfile.
- Set the OAuth Client Type to
- Start the development server with
npm start(ornpm run start). The server will be available at https://localhost:4200/. This page will automatically update whenever you change anything in the code.- Ignore the "invalid certificate" error your browser will show you. You need HTTPS to be able to use the Bungie Authentification.
- Copy
.env_devto.envand/or.env_beta. - To build a production package, set the environment flag
PRODUCTION=1. - To build a beta package, set the environment flag
BETA=1.
Then you can use npm run build.
You can also deploy the page to a "github pages" page. Please note that I strongly discourage hosting alternative D2AP installations, let's make this one as awesome as possible.
- Set the environment flag
BETA=1orPRODUCTION=1. - Modify the
deployscript inpackage.jsonand remove--base-href=/ --cname=d2armorpicker.com. The same for the beta command. If you deploy toyourname.github.io/fancyrepo, then you may have to set--base-href=/fancyrepo. npm run deploy(given you forked the repository first).
- We use husky to execute some commit hooks.
- We use eslint to make sure we have the same code style.
- We use prettier to make sure we have the same code formatting.
- We are using commitlint to make sure we all have the same commit structure. The template used is @commitlint/config-angular.
Thanks goes to these wonderful people (emoji key):
Mijago 💻 🤔 🚇 |
TheYeshir 📆 🤔 👀 📓 💬 |
Mojo 📆 🤔 📓 💬 |
Ben Hollis 💻 |
|||
|
|
||||||
This project follows the all-contributors specification. Contributions of any kind welcome!