All Projects → parkerziegler → formidadog-ql

parkerziegler / formidadog-ql

Licence: MIT License
A dead simple GraphQL API of dogs @FormidableLabs.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to formidadog-ql

landing
This project builds the static and internationalized landing page of Upplication.
Stars: ✭ 26 (+73.33%)
Mutual labels:  netlify
pbchess
An open-sourced free online chess platform
Stars: ✭ 42 (+180%)
Mutual labels:  netlify
nativesintech.org
The repository for the Natives in Tech website
Stars: ✭ 37 (+146.67%)
Mutual labels:  netlify
tmpnote
🍒 Share self-destructing encrypted notes
Stars: ✭ 22 (+46.67%)
Mutual labels:  netlify
podcastfreaks.com
日本語テック系ポッドキャストまとめ
Stars: ✭ 42 (+180%)
Mutual labels:  netlify
vuetibook
Integrating Vue.js, Vuetify and Storybook
Stars: ✭ 16 (+6.67%)
Mutual labels:  netlify
netlify-faunadb-graphql-auth
Netlify functions example with faunadb, graphql, and authorization
Stars: ✭ 57 (+280%)
Mutual labels:  netlify
hugo-shortcodes-netlify-cms
Shortcodes of Hugo for Netlify CMS Text Editor
Stars: ✭ 50 (+233.33%)
Mutual labels:  netlify
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (+13.33%)
Mutual labels:  netlify
elm-webpack-starter
Elm 0.19 webpack 4 starter template to build SPA
Stars: ✭ 109 (+626.67%)
Mutual labels:  netlify
vue-blog-netlify-template
A Vue.js blog powered by Cosmic. Deploy to Netlify in one click.
Stars: ✭ 34 (+126.67%)
Mutual labels:  netlify
nextjs-blog-starter-kit
NextJS Blog + Contentful Typescript Starter kit with Static Export 🚀
Stars: ✭ 56 (+273.33%)
Mutual labels:  netlify
snip
✌️ The simple, no-bs link shortener
Stars: ✭ 33 (+120%)
Mutual labels:  netlify
artisan-static
A feature-rich starter template for building a static Jigsaw blog hosted on Netlify.
Stars: ✭ 40 (+166.67%)
Mutual labels:  netlify
xStatic-for-Umbraco
This is a static site generator built for Umbraco so that you can host simple Umbraco sites on fast and cheap hosting providers such as netlify.
Stars: ✭ 25 (+66.67%)
Mutual labels:  netlify
basicpos-frontend
React frontend for Basic POS
Stars: ✭ 28 (+86.67%)
Mutual labels:  netlify
blog.georgi-yanev.com
📘 Personal blog built with Gatsby and hosted on Netlify
Stars: ✭ 17 (+13.33%)
Mutual labels:  netlify
anniew.xyz
My Personal Website / Portfolio
Stars: ✭ 41 (+173.33%)
Mutual labels:  netlify
netty-finder
☎️ This script checks a Nigerian telephone number and detects which network it belongs to.
Stars: ✭ 44 (+193.33%)
Mutual labels:  netlify
parcel-static-template
Start a simple static site with components and hot reloading.
Stars: ✭ 20 (+33.33%)
Mutual labels:  netlify

🐶 formidadog-ql 🐶

A dead simple GraphQL API of 🐶 @FormidableLabs. See the demo here.

Build Status Coverage Status Netlify Status

What's This About

Everyone needs a good, simple GraphQL API for making demo apps. Everyone could use more dog photos in their life. And everyone is probably dying to meet the pups of the awesome team at Formidable. To that end, we present formidadog-ql.

Get Me Running!

You know the drill. Clone the repo locally, yarn, yarn start.

git clone https://github.com/parkerziegler/formidadog-ql.git
cd formidadog-ql
yarn
yarn start

This will start the server up at localhost:4000. Go ahead and change the port in src/index.js if you like. We figured you might be using localhost:3000 already 😉.

Note: Running this app locally requires Node >= 8. We make use of async/await for startup, so make sure you're using Node 8 or above. Using LTS is recommended.

What Next?

Once you have the server running, go to localhost:4000/graphql in your browser. You'll get an awesome GraphiQL interface for writing queries, mutations, and exploring the schema.

formidadog-ql-demo

As long as you have the server running, you can hit localhost:4000/graphql from any local app to use this API.

Write a Simple Query

If you're not familiar with the basics of GraphQL, go ahead and check out How to GraphQL for tutorials and an overview. Let's write a simple query to get information on all the dogs at Formidable.

query dogs {
  dogs {
    name
    breed
    description
    imageUrl
    likes
  }
}

To obtain information on a single dog, use the dog query, which accepts a key variable to identify the dog. key is a required ID type in our GraphQL schema.

query dog($key: ID!) {
  dog(key: $key) {
    name
    breed
    likes
  }
}

You can use GraphiQL's variables editor to add the $key variable to the above query.

{
  "key": "VmeRTX7j-"
}

Write a Simple Mutation

To see what mutations are currently available on the API, use the Mutation explorer in GraphiQL. Let's execute a mutation to like one of these pooches!

mutation likeDog($key: ID!) {
  likeDog(key: $key) {
    name
    likes
  }
}

Each time we execute this mutation, we should see the mutated dog's likes increment by one.

How You Can Help

This API is not fully formed yet. There's plenty of great queries, mutations, and subscriptions left to be added. Go ahead and open a PR! If you find a bug, please file an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].