Skip to content

KenWuqianghao/Lichess-Readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lichess-Readme


lichess-readme

📍 Show off Your Chess Skill - Make the Most of lichess!

🚀 Developed with the software and tools below.

idna python pyc pack


📚 Table of Contents


📍Overview

Lichess-readme is a GitHub project designed to help authors of GitHub repositories easily create lichess elo rating badges on their github readme page.


⚙️ Project Structure

repo
├── app.py
├── LICENSE
├── lichess.yml
├── __pycache__
│   ├── app.cpython-311.pyc
│   └── app.cpython-39.pyc
├── README.md
├── requirements.txt
├── templates
│   └── card.html.j2
└── vercel.json

2 directories, 9 files

💻 Modules

Root
File Summary Module
app.py This code creates a Flask application that uses the Lichess API to generate an SVG card with the user 's rating for a given time control . The time control is set in an environment variable and the user 's rating is retrieved from the Lichess app.py
Templates
File Summary Module
card.html.j2 This code creates an SVG graphic with two rectangles , one in # 555 and one in # 007ec6 , and two text elements displaying the values of the variables " time_control " and " elo " . The graphic is 139x20 templates/card.html.j2

🚀 Getting Started

✅ Prerequisites

Before you begin, ensure that you have the following prerequisites installed:

Register a Vercel account

💻 Installation

  1. Fork the lichess-readme repository:
Screenshot 2023-06-10 at 04 41 18
  1. Go to vercel, create a project using the forked github repo
Screenshot 2023-06-10 at 04 41 30 Screenshot 2023-06-10 at 04 41 41
  1. Provide environment variables including username and time_control, time_control options are bullet, blitz and rapid.
Screenshot 2023-06-10 at 04 42 08
  1. Deploy and enjoy

🤖 Using lichess-readme

<img src="link-to-your-vercel-app/?">

🤝 Contributing

Contributions are always welcome! Please follow these steps:

  1. Fork the project repository. This creates a copy of the project on your account that you can modify without affecting the original project.
  2. Clone the forked repository to your local machine using a Git client like Git or GitHub Desktop.
  3. Create a new branch with a descriptive name (e.g., new-feature-branch or bugfix-issue-123).
git checkout -b new-feature-branch
  1. Make changes to the project's codebase.
  2. Commit your changes to your local branch with a clear commit message that explains the changes you've made.
git commit -m 'Implemented new feature.'
  1. Push your changes to your forked repository on GitHub using the following command
git push origin new-feature-branch
  1. Create a pull request to the original repository. Open a new pull request to the original project repository. In the pull request, describe the changes you've made and why they're necessary. The project maintainers will review your changes and provide feedback or merge them into the main branch.

🪪 License

This project is licensed under the MIT License. See the LICENSE file for additional info.


Releases

No releases published

Packages

No packages published