• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

OlivierJM/react-github-api: Using GitHub API with GraphQL

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

OlivierJM/react-github-api

开源软件地址:

https://github.com/OlivierJM/react-github-api

开源编程语言:

TypeScript 52.7%

开源软件介绍:

react-github-api

Build Status JavaScript Style Guide Netlify Status

react-github-api uses GraphQL with github API to search for a user and show their repositories instantly.
I used debounce to avoid making too much calls to the GraphQL server each on each onChange on the input field.

How to use it

Just put in your username or any other username you want to look for and it will show you the repositories.
Try it here

Development

requirements

  • Node ˆv6
  • npm@latest

after that clone the repo

git clone https://github.com/OlivierJM/react-github-api.git
cd react-github-api

install dependencies

npm install or yarn

you will need a github token for this to work, generate one for yourself here

create a file in the root of the project called .env and add your token as follows.

REACT_APP_TOKEN="YOURTOKENSHOULDBEHERE1234"

Running

npm start or yarn start

Testing

npm run test

Contribution

Fork this repo

Clone your forked repo

git clone https://github.com/your-github-username/react-github-api.git

Add this repo to your remotes as upstream.

git remote add upstream https://github.com/OlivierJM/react-github-api

Before pushing anything to your fork, always

git pull upstream

For more on this read the contributing guide.

Happy Coding




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap