Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.76 KB

CONTRIBUTING.md

File metadata and controls

74 lines (55 loc) · 1.76 KB

Contributing

Thanks for wanting to help make this project better! 🛠️

  1. Fork the repo and clone it locally.
  2. [Optional] Run local instance of APIs
  3. Create a branch: git checkout -b feature/<name>
  4. Push your branch and submit a PR.
  5. Keep it clean and follow code style guidelines.

Run local instance of APIs

Run local versions of the APIs to avoid rate limiting from the hosted versions.

  1. Clone the repo and cd into it.

    git clone --recurse-submodules https://github.com/helldivers-2/api
    cd api
  2. Edit the src\Helldivers-2-API\appsettings.json to your likig. Make sure you set the ValidAudiences to ["*"] or else you will have problems. More info

     {
       "Helldivers": {
         "API": {
           "RateLimit": 5,
           "RateLimitWindow": 10,
           "Blacklist": "",
           "Authentication": {
             "Enabled": false,
             "ValidIssuers": [],
             "ValidAudiences": ["*"]
           }
         }
       }
     }
  3. Build the image.

     docker build -f ./src/Helldivers-2-API/Dockerfile -t helldivers2-api .
  4. Run

    docker compose up -d helldivers-api 
  1. Clone the repo and cd into it.

    git clone https://github.com/helldivers-2/diveharder_api.py
    cd diveharder_api.py
  2. Build image

    docker build . -t diveharder-api.py
  3. Run

    docker compose up -d diveharder-api

Report bugs and feature requests by opening an issue.