vmptk / meteor-starter-kit

A minimal setup to use Apollo with Meteor and React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meteor + Apollo boilerplate

A simple kit to start experimenting with Apollo, Meteor and React.

Includes

  • GraphQL server running with Express bound to the Meteor app
  • Apollo client
  • React
  • Accounts UI, Basic & password
  • ES6 syntax

Check package.json for specific versions

Running it

meteor npm install
meteor

GraphiQL is enabled at /graphiql.

Folder structure

.
├── client                  # Client files
│   ├── styles              # Styles
│   ├── main.html           # First loaded view pulling from imports
│   └── main.js             # Imports all required files - React render
├── imports                 # A client/server folder
│   ├── api                 #
│   |  └── schema.js        # Schema & query definitions
|   └── ui                  # UI React rendering
│      └── App.js           # Component using `graphql` HOC
│      └── Header.js        # Basic presentational component
│      └── Loading.js       # Reusable loading component
│      └── LoginForm.js     # Component using `withApollo` HOC
├── server                  # Server files
│   └── server.js           # Main server file initiating Apollo server
└── package.json            # node dependencies

Learn more

About

A minimal setup to use Apollo with Meteor and React.


Languages

Language:JavaScript 57.1%Language:CSS 41.7%Language:HTML 1.2%