Skip to content

Commit bcb5d69

Browse files
authored
Merge branch 'source' into add-alembic-logo
2 parents 3bf7ba2 + 16d00db commit bcb5d69

File tree

7 files changed

+37
-3
lines changed

7 files changed

+37
-3
lines changed

site/blog/20160419-mocking.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ date: 19 Apr 2016
66
byline: "Jonas Helfer"
77
guestBio: engineer at Meteor working on Apollo
88
---
9+
910
Do you think mocking your backend is always a tedious task? If you do, reading this post might change your mind…
1011

1112
Mocking is the practice of creating a fake version of a component, so that you can develop and test other parts of your application independently. Mocking your backend is a great way to quickly build a prototype of your frontend, and it lets you test your frontend without starting up any servers. API mocking is so useful that a [quick Google search](https://www.google.com/?ion=1&espv=2#q=mock+rest+api) will turn up dozens of expensive products and services that promise to help you.
1213

1314
Sadly, I think none of the solutions out there make it as easy as it should be. As it turns out, that’s because they’ve been trying to do it with the wrong technology!
1415

16+
> Editor’s note : The concepts in this post are accurate, but some the code samples don’t demonstrate new usage patterns. After reading, consult the [graphql-tools docs](http://dev.apollodata.com/tools/graphql-tools/mocking.html) to see how to use mocking today.
17+
1518
## Why mock?
1619

1720
Mocking the data a backend would return is very useful for two main reasons:
@@ -68,12 +71,12 @@ But enough talking, here’s a complete example:
6871
<script src="https://gist.github.com/helfer/c7bbf659bdaeb36d4f8a389e39a7a5fa.js"></script>
6972

7073
## Live demo + try it yourself
71-
To see the example in action and see what output it generates, head over to the [live demo](https://apollostack.github.io/mock-demo/) and click the “play” button a couple of times!
74+
To see the example in action and see what output it generates, head over to the [live demo](https://launchpad.graphql.com/98lq7vz8r) try running some queries!
7275

73-
If you want to fiddle around with the example, you can do that — it’s all on GitHub: [apollostack/mock-demo](https://github.com/apollostack/mock-demo). If you’re curious about how it works or want to see what other tools we’re building for GraphQL, then head over to [apollostack/graphql-tools](https://github.com/apollostack/graphql-tools).
76+
If you want to fiddle around with the example, just click the "Download" button in the Launchpad UI. If you’re curious about how it works or want to see what other tools we’re building for GraphQL, then head over to [apollostack/graphql-tools](https://github.com/apollostack/graphql-tools).
7477

7578
Pretty cool, right? All of that becomes possible by using a type system. And that’s only just the beginning — we‘re working on bridging the gap between mocking and the real thing so that your mock server can gradually turn into your real server as you add more functionality to it.
7679

7780
- - -
7881

79-
*This post was originally published on [Building Apollo](https://medium.com/apollo-stack), a blog where Sashko Stubailo and myself write about building a futuristic GraphQL-based data stack called [Apollo](http://www.apollostack.com). We publish one or two posts every week, about the stuff we’re working on and thinking about.*
82+
*This post was originally published on [the Apollo Blog](https://medium.com/apollo-stack). We publish one or two posts every week, about the stuff we’re working on and thinking about.*

site/community/Community-Events.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ sublinks: Upcoming Events,Meetups
88

99
## Upcoming Events
1010

11+
#### GraphQL - The People's Query Language
12+
13+
- **Date:** 21st June, 2017
14+
- **Location:** Denver, Colorado, USA
15+
- **Link:** https://www.meetup.com/Node-js-Denver-Boulder/events/240482998/
16+
17+
In this talk, we'll discuss the history and purpose of GraphQL, common misconceptions about GraphQL, and setting up GraphQL in a Node/Express back-end. We'll also take a look at GraphQL's development tool GraphiQL and how it self-documents your resources. If you're curious about GraphQL and how to make working with relational data a breeze, join us!
18+
19+
## Past Events
20+
1121
### GraphQL-Europe Conference
1222

1323
- **Date:** 21st May, 2017
@@ -51,3 +61,4 @@ Everyone is excited about Subscriptions, the new real-time GraphQL feature. Curi
5161
### Asia
5262

5363
- [GraphQL Tel Aviv](https://www.meetup.com/GraphQL-TLV/)
64+
- [GraphQL Tokyo](https://www.meetup.com/GraphQL-Tokyo/)

site/users/index.html.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,26 @@ var logos = [
480480
img: 'circlehd.png',
481481
link: 'https://www.circlehd.com/',
482482
},
483+
{
484+
name: 'Helsinki Regional Transport Authority HSL',
485+
img: 'hsl.png',
486+
link: 'https://www.hsl.fi/',
487+
},
488+
{
489+
name: 'Digitransit',
490+
img: 'digitransit.png',
491+
link: 'https://digitransit.fi/',
492+
},
493+
{
494+
name: 'MyHeritage',
495+
img: 'myheritage.png',
496+
link: 'https://www.myheritage.com',
497+
},
498+
{
499+
name: 'Protel',
500+
img: 'protel.png',
501+
link: 'https://protel.com.tr/',
502+
},
483503
{
484504
name: 'Alembic',
485505
img: 'alembic.png',

site/users/logos/digitransit.png

7.22 KB
Loading

site/users/logos/hsl.png

7.62 KB
Loading

site/users/logos/myheritage.png

22.3 KB
Loading

site/users/logos/protel.png

20.9 KB
Loading

0 commit comments

Comments
 (0)