This repository is for the AWS x League Of Legends Hackathon - Global Power Rankings - LoL Esports Data
-
This repository contains the API for the Global Power Rankings Hackathon sponsored by AWS x Riot
-
Team rankings are based on accumulated wins and losses of tournament matches where the type is 'BestOf' and mode is 'Classic'.
- MongoDB ATLAS cluster - AWS - US-EAST-1
- mongodb/brew/mongodb-database-tools
- Python3
- GO 1.21+
- AWS SAM [lambda, API Gateway, etc]
- Docker Desktop 4.24+
- Docker Compose 2.22.0+
- setup an MongoDB Atlas cluster https://www.mongodb.com/cloud/atlas/register
-
go mod download
brew install mongodb/brew/mongodb-database-tools
Copy the contents of ./swagger.yml to Swagger Editor and begin invoking the Serverless API endpoints.
https://app.swaggerhub.com/apis/jackmcguire1/Riot-Global-Rankings/1.0.1
docker-compose up -d
docker compose watch
- run
python3 ./tools/get_riot_files.py
- create a database on your MongoDB Atlas cluster called
riot
-
cd ./esports-data
-
mongoimport --uri 'mongodb+srv://{ADDRESSS}' --collection tournaments --type json --file tournaments.json --jsonArray
-
mongoimport --uri 'mongodb+srv://{ADDRESSS}' --collection mappings --type json --file mapping_data.json --jsonArray
-
mongoimport --uri 'mongodb+srv://{ADDRESSS}' --collection leagues --type json --file leagues.json --jsonArray7.
-
mongoimport --uri 'mongodb+srv://{ADDRESSS}' --collection teams --type json --file teams.json --jsonArray
-
mongoimport --uri 'mongodb+srv://{ADDRESSS}' --collection players --type json --file players.json --jsonArray