在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):github/github-graphql-rails-example开源软件地址(OpenSource Url):https://github.com/github/github-graphql-rails-example开源编程语言(OpenSource Language):Ruby 47.7%开源软件介绍(OpenSource Introduction):GitHub GraphQL Rails example applicationDemonstrates how to use the The application structure is setup like a typical Rails app using controllers, views and routes with one key difference, no models. This app doesn't connect directly to any database. All the data is being fetched remotely from the GitHub GraphQL API. Instead of declaring resource models, data queries are declared right along side their usage in controllers and views. This allows an efficient single request to be constructed rather than making numerous REST requests to render a single view. Table of ContentsJump right into the code and read the inline documentation. The following is a suggested reading order:
Running locallyFirst, you'll need a GitHub API access token to make GraphQL API requests. This should be set as a $ git clone https://github.com/github/github-graphql-rails-example
$ cd github-graphql-rails-example/
$ bundle install
$ GITHUB_ACCESS_TOKEN=abc123 bin/rails server And visit http://localhost:3000/. See Also
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论