When using a BattleTag replace #
with ~
.
/api/v1/profile/:account/:region
us
,eu
,kr
,psn
,xbl
/api/v1/profile/Tracer~3939/us
Returns Tracer#3939's us region .
/api/v1/profile/Tracer~3939
Returns Tracer#3939's profile where level is highest.
You will need Node.js and Git installed, plus a copy of MongoDB.
git clone https://github.com/AidanT/Infra-Sight infra-sight
cd infra-sight
If MongoDB isn't running on localhost:27017
then: open ./config/env/development.js
and replace localhost:27017
with the ip and port for the MongoDB.
npm install
npm start
You will need Docker and Git installed.
git clone https://github.com/AidanT/Infra-Sight infra-sight
cd infra-sight
docker network create infra-sight_network
Replace some-mongo
with a cool name.
Replace ~/data/db
with a directory of your choosing.
docker run --name some-mongo -p 27017:27017 -v ~/data/test/db:/data/db -d --net infra-sight_network mongo
docker build -t infra-sight .
Replace some-mongo
with the name of the MongoDB container.
docker run --name infra-sight -p 3000:3000 -e NODE_ENV=production -e databaseUri="mongodb://some-mongo:27017/infra-sight" --net infra-sight_network infra-sight