Git Product home page Git Product logo

apometact's Introduction

Apometact

This is a Apollo, Meteor and React example app.
It is the backend application for this chatbot: ok Chatbot
Blog post: Graphql with Apollo, Meteor and React

The application:

The magic:

  • Build system > Meteor
  • Graphql client > React and Apollo
  • Graphql server > Express and Apollo

Run with:

  • Install Meteor
  • Clone this repo and install dependencies with npm install
  • Copy configuration-template.json to development.json and update it
  • Run with npm run dev

What you get:

FAQ

Why Meteor as a build system?

Ever tried to run a client and server app with node, babel, webpack and live reload in a development environment? Seppuku!

Queries

A list of Graphql queries and mutators.

Deals

{
  deals {
    id
    title
    imageUrl
    pointOfSale
    description
    expiresAt
    createdAt
  }
}

mutation {
  createDeal(title: "Energy Drink Test") {
    id
  }
}

mutation {
  createDeal(title: "Energy Drink Test", description: "2 für 8", productDetails: "250 ml", itemUrl: "http://www.okpunktstrich.ch/de/", imageUrl: "https://s3.amazonaws.com/valora/energy+drink+resealable.jpg", qrImageUrl: "https://s3.amazonaws.com/valora/energy+drink+qr.png", pointOfSale: ["KKiosk", "Avec"], categoryId: "", publishAt: "2016-09-28T22:11:53.158Z", expiresAt: "2016-10-28T22:11:53.158Z", createdAt: "2016-09-28T22:11:53.158Z") {
    id
  }
}

mutation {
  updateDeal(id: "57ed95d231155e0ba0eab8a3", title: "new title")
}

mutation {
  deleteDeal(id: "57ec46867c590b11c8d03100")
}

Categories

mutation{
  createCategory(label: "Hello World") {
    id
  }
}

mutation {
  updateCategory(id: "57ed90f030387b0a0c2d2448", label: "New Title")
}

mutation {
  deleteCategory(id: "57ed90f030387b0a0c2d2448")
}


Resources

How to build a GraphQL server

GraphQL cheat sheet

Apollo server docs

Apollo react client docs

Outdated but useful example of Meteor integration

apometact's People

Contributors

janikvonrotz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.