• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code that aims to explain the client and the server side of using GraphQL in apps.

Basically, Full-stack GraphQL GraphQL

This fairly trivial project aims at introducing a newcomer to GraphQL and the way it works. The code aims to explain the client and the server side of things.

The source code has been heavily commented and documented in order to explain what's going on. It is highly recommended to read through it. Do not be afraid!

See it in action!

The Project

The project is basically a recipe search system to help someone cook yummy things. 🍜 It works by sending an ingredient as a query to a GraphQL server that retrieves data from (normally, what should be a database) a REST endpoint somewhere on the intrawebs (read: RecipePuppy) that has a nice open API we can query.

This project is literally meant to be a POC and nothing too serious.

Getting Started

To run the example locally, simply clone the repo and run yarn install, then yarn start. The project will be accessible under http://localhost:4000. Be sure to inspect the network requests for more insights into how it all works.

Frequently Asked Questions

  • But what about Redux/VueX?

For this project, my motivation was that I was afraid for the longest time of the server side of GraphQL. HOW DOES IT KNOW WHATS GOING ON IN THE DATA LAYER? So I looked into how it works from zero to deployment, and when I found my answers (and was comfortable enough with them to explain them to others), other developers seemed to have been comforted by this explanation.

In essence, this project aims to be a mass-produced version of that explanation, regardless of UI framework. Basically, it is meant to answer 3 questions:

When it comes to frameworks or state managers, we can deal with those in other projects. πŸ˜„

Thanks to

  • Vue, for an amazingly versatile bootstrap process.

Happy Coding! πŸŽ‰

More Repositories

1

add-gitignore

An interactive CLI tool that adds a .gitignore to your projects.
JavaScript
636
star
2

gen-subs

Generate subtitles for your videos with secure, on-device machine learning models.
TypeScript
160
star
3

basically-streams

An introductory project to the relatively new streaming APIs available in modern browsers.
JavaScript
131
star
4

danGPT

An AI of Dan Abramov using RAG and GenAI.
TypeScript
80
star
5

tejaskumar.com

my website nbd
TypeScript
38
star
6

babel-plugin-glamorous-to-emotion

A codemod to migrate existing React or Preact codebases from glamorous to emotion.
JavaScript
34
star
7

react-hook-intersection-observer

A simple React hook that works with the Intersection Observer API.
JavaScript
33
star
8

bookoid

An open source library management solution.
TypeScript
29
star
9

basically-react-suspense

An attempt to explain React Suspense to myself.
JavaScript
28
star
10

get-all-css-properties

An npm script that gets all the CSS properties, listed alphabetically.
TypeScript
27
star
11

basically-continuous-deployment

A simple project that aims to explain the process of continuous deployment.
JavaScript
25
star
12

praise

Do stuff with your voice in the browser.
TypeScript
13
star
13

react-server-components-from-scratch

This is from a YouTube video: https://youtu.be/F83wMYl9GWM
TypeScript
12
star
14

basically-web-workers

An introduction to Web Workers in basic terms.
JavaScript
11
star
15

event-sourcing-for-the-rest-of-us

Basically Kafka and Next.js
TypeScript
8
star
16

klar

A tool to infer and generate static type definitions based on resources returned by backend APIs.
JavaScript
8
star
17

favorite-javascript-flavors

My favorite styles in which to write JavaScript.
7
star
18

idli

Your AI command-line copilot
TypeScript
6
star
19

makeshift-next.js

A barebones Next.js from my YouTube video: https://www.youtube.com/watch?v=3RzhNYhjVAw
TypeScript
5
star
20

terraform-nodejs-screenshooter

A thing I made for a talk to teach people about Terraform and Infrastructure as Code.
HCL
5
star
21

restful-react-demo

Thing that talks to Giphy from ReactConf.
HTML
5
star
22

tejjer-next13

TypeScript
5
star
23

serverless-workshop

TypeScript
5
star
24

react-praise

A React binding for Praise.
TypeScript
4
star
25

tejjer-qwik

JavaScript
4
star
26

anna-artemov.now.sh

A basic website for my girlfriend's mom.
JavaScript
4
star
27

on-awesome

A little package to respond to people typing the word 'awesome' in web apps.
TypeScript
4
star
28

typescript-workshop-2019

Some exercises from my TypeScript workshop
TypeScript
4
star
29

jsconf-eu-2018-slides

My slides for JSconf EU 2018.
JavaScript
2
star
30

tejjer-solid

JavaScript
2
star
31

cli

A CLI of my name because yolo
JavaScript
2
star
32

typescript-trivia

Created with CodeSandbox
TypeScript
2
star
33

infusion-journal

A journal of my medical infusions
TypeScript
2
star
34

xss

A tutorial repo highlighting the basics of cross-site scripting.
TypeScript
2
star
35

react-suspense-pokedex

A bunch of things about streaming React for faster UIs.
JavaScript
2
star
36

react-fetch-with-roll-your-own-suspender

A demo of ad-hoc data fetching with React suspense that I made during a talk.
TypeScript
2
star
37

serverless-wedding

A simple demo of a serverless app with full CRUD functionality.
JavaScript
2
star
38

keel-todo

2
star
39

serverless-ssr-experiment

An experiment to learn how various UI frameworks behave when server rendered, serverless style.
JavaScript
1
star
40

saddleback-berlin-welcome

An app to serve newcomers to Saddleback Church in Berlin.
JavaScript
1
star
41

keel-thing

TypeScript
1
star
42

wasm-pack--303

A repo for an issue I opened.
Rust
1
star
43

devjokes

TypeScript
1
star
44

limelightcollective.de

The website for the Limelight Collective
TypeScript
1
star
45

drawing-app

TypeScript
1
star
46

broken-counter

TypeScript
1
star
47

reddit-bug-fix-2

JavaScript
1
star
48

stuff-ive-learned-that-might-be-helpful-for-you--

Slides from my talk about best practices for development teams.
HTML
1
star
49

tejjer-next

TypeScript
1
star
50

tejjer-mitosis

TypeScript
1
star
51

better-gmail

I'm trying to make a better mail client
1
star
52

qwikvercelbugrepro

TypeScript
1
star
53

g2i-gql-ts-thing

JavaScript
1
star
54

csp

A basic introduction to content security policies.
TypeScript
1
star
55

cli-preview

TypeScript
1
star
56

gen-ui

The demo from my tlak.
TypeScript
1
star