howtographql/ember-apollo

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Ember & Apollo Tutorial

This is the sample project that belongs to the Ember & Apollo Tutorial on How to GraphQL.

Running the app
0. Verify dependencies

This project relies on two dependencies: Node and ember-cli.

Verify these dependencies are installed and configured.

1. Clone repository
clone https://github.com/howtographql/ember-apollo/
mber-apollo
2. Create GraphQL API with 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")

3. Connect the app with your GraphQL API

Copy the simple API endpoint URL (which you find by executing graphcool endpoints) and replace __SIMPLE_API_URL__ in config/environment.js.

4. Enable email-password Authentication Provider

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:

5. Install dependencies & run locally
 install
 start

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.