Name: ember-apollo
Owner: How to GraphQL
Description: Sample project for the Ember & Apollo tutorial on How To GraphQL
Created: 2017-07-20 16:23:53.0
Updated: 2018-05-02 09:13:09.0
Pushed: 2017-08-22 14:20:24.0
Homepage: http://howtographql.com
Size: 119
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the sample project that belongs to the Ember & Apollo Tutorial on How to GraphQL.
This project relies on two dependencies: Node and ember-cli
.
Verify these dependencies are installed and configured.
clone https://github.com/howtographql/ember-apollo/
mber-apollo
graphcool
stall Graphcool CLI
global add graphcool
eate a new project based on the Hackernews schema
hcool init --schema https://graphqlbin.com/hn.graphql --name Hackernews
This creates a GraphQL API for the following schema:
Link implements Node {
scription: String!
stedBy: User @relation(name: "UsersLinks")
l: String!
tes: [Vote!] @relation(name: "VotesOnLink")
User implements Node {
nks: [Link!] @relation(name: "UsersLinks")
me: String!
tes: [Vote!] @relation(name: "UsersVotes")
Vote {
nk: Link @relation(name: "VotesOnLink")
er: User @relation(name: "UsersVotes")
Copy the simple API endpoint URL (which you find by executing graphcool endpoints
) and replace __SIMPLE_API_URL__
in config/environment.js
.
Open your project in the Graphcool console (you can use the graphcool console
command in the terminal or simply navigate to it in the browser).
Then click the following items:
install
start