Welcome to the Lolchi web application! This tool allows you to track your game statistics, analyze performance, and improve your gameplay.
- Real-time Match Tracking: Get live updates on your ongoing matches.
- Detailed Statistics: View comprehensive stats for each game, including kills, deaths, assists, and more.
- Champion Statistics: Analyze your performance on different champions.
- Recently Played With: See who you've recently played with.
- Clone the repository:
git clone https://github.com/Yimikami/lolchi.git
- Navigate to the project directory:
cd lolchi
- Install dependencies:
npm install
- Start the application:
npm run dev
- Open your web browser and go to
http://localhost:3000
. - Enter your League of Legends summoner name to start tracking your stats.
- No Data: Sometimes (especially when first visit the summoner profile), the data may not be displayed. This is due to the Riot API rate limit. Please wait a few seconds and refresh the page.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Description of your changes"
- Push to the branch:
git push origin feature-branch
- Create a pull request.
With the introduction of worker.js
, you can now deploy Lolchi on Cloudflare Workers without the need for a traditional server setup.
If you prefer not to use the Cloudflare Worker script, you can find the old server.js
and riot.ts
files in the OLD_FILES
directory.
- Set up a Cloudflare Workers account: If you don't have one, sign up at Cloudflare.
- Deploy the Worker:
- Use the Cloudflare dashboard or Wrangler CLI to deploy your
worker.js
file. - Ensure your environment variables are set up correctly in the Cloudflare dashboard.
- Use the Cloudflare dashboard or Wrangler CLI to deploy your
For more detailed instructions, refer to the Cloudflare Workers documentation.
For development purposes, you can set const ALLOWED_ORIGINS = ["*"];
in worker.js
to allow all origins. However, for production deployment, it's recommended to specify your own domain to enhance security.
// Example for development
const ALLOWED_ORIGINS = ["*"];
// Example for production
const ALLOWED_ORIGINS = ["https://yourdomain.com"];
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please contact me at hi@yimikami.me
Enjoy tracking and improving your League of Legends gameplay!
This project 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.