Skip to content

A sample OAuth2 Client Credentials flow application using Blizzard Battle.net APIs in Node.js.

License

Notifications You must be signed in to change notification settings

Farah404/Raiddon-bnet-data

Repository files navigation

Npm Documentation Status GitHub license git Visual Studio Code JavaScript Docker saythanks
My Skills My Skills My Skills My Skills My Skills

RAIDDON

This microservice is a flexible and feature-rich javascript that allows you to fetch your battle.net acces token using the BlizzAPI in order to access to Blizzard Battle.net APIs.
This work is a part of a bigger project: RAIDDON. Raiddon is a project that fosters all the developpement and conceptual understandings acquired throughout the ISIKA 10-month educational program.

The code will first fetch your access token then fetch multiple sets of data from Battle.net and finally store it into a MongoDB database named "raiddon-bnet-api"
The fetched data collections are:

Achievements categories,
Achivements,
Areas,
Armor,
Auction house index,
Alliance aucion house,
Horde auction house,
Character specialisations,
Class talents,
Consumables,
Containers,
Creature families,
Creature types,
Gems,
Item classes,
Mounts,
Playable classes,
Playable races,
Power types,
Professions,
Quest categories,
Quest types,
Realms,
Reputation factions,
Titles,
Weapons.

Manual build

git clone https://github.com/Farah404/Raiddon
cd Raiddon
cd raiddon-bnet-data
npm install

Setup

Register a client app with Blizzard Battle.net Developer Portal. Note down client id and client secret.
Copy and rename the file .env.sample to .env. Edit it accordingly:

PORT='8080'
API_BATTLENET_KEY='your client app id'
API_BATTLENET_SECRET='your client app secret'
MONGO_DB_URI='The link that allows you to connect to your Mongo Atlas free cluster'
ACCESS_TOKEN = 'The access token retrieved using Raiddon-bnet-data'

Run

With Node:

npm start

With Nodemon:

nodemon start.js

Heroku Deployment

Raiddon Battle.net API

Documentation

Get your client ID and client secret here: BattleNet dev portal
Official blizzard documentation: Getting started with bnet API
Create your free cluster here: MongoDB Atlas

Legal

This project is not authored, affiliated or endorsed in any way by Blizzard Entertainment. Battle.net and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.

Releases

No releases published

Packages

No packages published

Languages