LOLOT API is a REST API used in conjunction with the LOLOT UI web application, which allows League of Legends players to keep track of their Hextech Chest rewards via Champion Mastery for the current season.
This REST API was developed using FeathersJS.
A Riot Games API key is required to use this REST API. The REST API is set up to consume the API key via environment variable RIOT_GAMES_API_KEY
(see config.js). You can obtain an API key from the Riot Games Developer portal.
The REST API is using CORS and an origin has to be set (see app.js). The origin can be set to environment variable LOLOT_ORIGIN
(see config.js).
- Make sure the aforementioned Configuration options have been addressed.
- Make sure Git, Node.js, and npm are installed and configured on your machine.
-
Clone this repository to a location of your choosing.
-
Inside the cloned directory, run:
npm install
- Once the npm packages have been installed, run:
npm start
- The REST API will start locally on http://localhost:8080 (port set by default).
Testing is configured to use Mocha, Chai, and Nock, with nyc used to report coverage.
To run the tests, run:
npm test
LOLOT isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.