LoLTT is a web application that allows users to search and view detailed match information for a player in League of Legends. By entering the player's Game Name, Tag Line, and selecting the region, users can quickly access a list of their most recent matches and drill down into specific match details.
To get a local copy of this project up and running, follow these instructions.
Before starting, ensure you have the following installed:
-
Clone the repository to your local machine:
git clone https://github.com/Mehdi-Messaadi/loltt.git
-
Change into the project directory:
cd .\loltt\
-
Obtain your Riot Games API key:
- Visit the Riot Developer Portal.
- Connect with your Riot account.
- Navigate to the "Support" page (if you're not redirected automatically).
- At the bottom of the page, complete the Captcha and regenerate your API KEY.
-
Configure the project:
- In the project directory, navigate to
src/backend/.env
. - Open the
.env
file and paste your API KEY between the quotes like so:
API_KEY="YOUR_API_KEY"
- Next, open the
Dockerfile
located in the root folder, and replace the placeholder with your API KEY value as required.
- In the project directory, navigate to
-
Build the Docker image:
docker build -t my-app .
-
Run the Docker container:
docker run -p 3000:3000 -p 4000:4000 my-app
-
The application should now be running locally. Open your browser and navigate to:
http://localhost:3000/
- Enter the Game Name and Tag Line of the player whose latest matches you want to retrieve.
- Select the appropriate region from the dropdown.
- Click on the Search Matches button.
- Wait for a few seconds for the matches to load.
- Click on any match to view detailed statistics, including team and participant information.
This project is licensed under the MIT License. See the LICENSE file for more information.
- Riot Games API for providing access to game data.