Contributing to youtube-stats-card
I would love your input! I aim to make contributing to this project as easy as possible, whether it's:
- Reporting an issue
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
To run & test youtube-stats-card you need to follow a few simple steps:- (make sure you already have a vercel account)
- Install Vercel CLI
- Fork the repository and clone the code to your local machine
- Run the command "vercel" in the root and follow the steps there
- Create a
.env
file in the root of the directory - In the .env file add a new variable named "YT_KEY" with your youtube API key
- Run the command "vercel dev" to start a development server at https://localhost:3000
YouTube Stats Card supports custom themes, and you can also contribute new themes.
All you need to do is edit themes/index.js file and add your theme at the end of the file. You can also test how it looks using custom URL parameters like title_color
, icon_color
, text_color
, bg_color
NOTE: If you are contributing your theme just because you are using it personally, then you can customize the looks of your card with URL params instead.
Pull request are actively welcomed:
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add some tests' example.
- If you've changed APIs, update the documentation.
- Issue that pull request.
Report issues/bugs using GitHub's issues
Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific
- Share the snapshot (if possible)
- YouTube Stats Card live link
- What actually happens
- What you expected would happen
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
Great Feature Requests tend to have:
- A quick idea summary
- What & why you wanted to add the specific feature
- Additional context like images, links to resources to implement the feature, etc
Licensed under the MIT License.
Inspired by anuraghazra's github-readme-stats