Unofficial Riot API with GraphQL
How to use
- clone the project
- create a .env file a the root
- add
API_KEY = "api_key=YOUR_API_KEY"to your .env file npm installnpm run dev
- Go to the top level riot-graphql-api repository: (Repo)
- Click the "Fork" Button in the upper right hand corner of the interface
- clone the project you just forket
- Change directory to the new riot-graphql-api directory (
cd riot-graphql-api) - Add a remote to the official riot-graphql-api repo:
$ git remote add upstream https://github.com/jsparanoguy/riot-graphql-api.gitDo this prior to every time you create a branch for a PR:
- Make sure you are on the
stagingbranch
$ git status
On branch staging
Your branch is up-to-date with 'origin/staging'.If your aren't on staging, resolve outstanding files / commits and checkout the staging branch
$ git checkout staging- Do a pull with rebase against
upstream
$ git pull --rebase upstream stagingThis will pull down all of the changes to the official staging branch, without making an additional commit in your local repo.
- (Optional) Force push your updated staging branch to your GitHub fork
$ git push origin staging --forceThis will overwrite the staging branch of your fork.
Before you start working, you will need to create a separate branch specific to the issue / feature you're working on. You will push your work to this branch.
Name the branch something like fix/xxx or feature/xxx where xxx is a short description of the changes or feature you are attempting to add. For example fix/email-login would be a branch where you fix something specific to email login.
To create a branch on your local machine (and switch to this branch):
$ git checkout -b [name_of_your_new_branch]and to push to GitHub:
$ git push origin [name_of_your_new_branch]