All Projects β†’ entria β†’ Graphql Dataloader Boilerplate

entria / Graphql Dataloader Boilerplate

Licence: mit
Very simple boilerplate using GraphQL and DataLoader

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Graphql Dataloader Boilerplate

Graphql Starter
πŸ’₯ Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+733.83%)
Mutual labels:  graphql, boilerplate, relay
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+978.02%)
Mutual labels:  graphql, relay, boilerplate
Create Graphql
Command-line utility to build production-ready servers withΒ GraphQL.
Stars: ✭ 441 (+8.89%)
Mutual labels:  graphql, relay, boilerplate
Laravel Vue Boilerplate
🐘 A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
Stars: ✭ 472 (+16.54%)
Mutual labels:  graphql, boilerplate, jest
Graphql Query Test Mock
Easily mock GraphQL queries in your Relay Modern / Apollo / any-other-GraphQL-client tests.
Stars: ✭ 49 (-87.9%)
Mutual labels:  graphql, relay, jest
Reactconfbr
Public infos and issues about React Conf Brasil organization
Stars: ✭ 156 (-61.48%)
Mutual labels:  graphql, relay, jest
React Starter Kit
React Starter Kit β€” front-end starter kit using React, Relay, GraphQL, and JAM stack architecture
Stars: ✭ 21,060 (+5100%)
Mutual labels:  graphql, boilerplate, relay
React App
Create React App with server-side code support
Stars: ✭ 614 (+51.6%)
Mutual labels:  graphql, relay, boilerplate
Relay Fullstack
β˜οΈπŸƒ Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
Stars: ✭ 986 (+143.46%)
Mutual labels:  graphql, relay, boilerplate
Next Advanced Apollo Starter
Advanced, but minimalistic Next.js pre-configured starter with focus on DX
Stars: ✭ 131 (-67.65%)
Mutual labels:  graphql, boilerplate, jest
Express Graphql Boilerplate
Express GraphQL API with JWT Authentication and support for sqlite, mysql, and postgresql
Stars: ✭ 201 (-50.37%)
Mutual labels:  graphql, boilerplate, jest
Express Graphql Mongodb Boilerplate
A boilerplate for Node.js apps / GraphQL-API / Authentication from scratch - express, graphql - (graphql compose), mongodb (mongoose).
Stars: ✭ 288 (-28.89%)
Mutual labels:  graphql, boilerplate
Jobs
Come and join the Entria team
Stars: ✭ 292 (-27.9%)
Mutual labels:  graphql, relay
React Bolt
⚑ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-26.42%)
Mutual labels:  boilerplate, jest
React Native Navigation Redux Starter Kit
React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
Stars: ✭ 271 (-33.09%)
Mutual labels:  boilerplate, jest
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (-24.2%)
Mutual labels:  boilerplate, jest
Relay Modern Course
Relay Modern Course
Stars: ✭ 310 (-23.46%)
Mutual labels:  graphql, relay
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+4523.95%)
Mutual labels:  boilerplate, jest
Jseg
A super simple, in-memory, JS graph database.
Stars: ✭ 344 (-15.06%)
Mutual labels:  graphql, relay
Rockpack
Rockpack is a simple solution for creating React Application with Server Side Rendering, bundling, linting, testing within 5 minutes
Stars: ✭ 265 (-34.57%)
Mutual labels:  boilerplate, jest

Deprecated

Try a better version here https://github.com/entria/entria-fullstack

GraphQL DataLoader Boilerplate

CircleCI codecov

Boilerplate using GraphQL and DataLoader

⭐️ TypeScript ⭐️

Check it out TS version of this boilerplate: https://github.com/entria/graphql-dataloader-boilerplate-ts

Blog Posts

Directory Structure

β”œβ”€β”€ /data/                   # GraphQL generated schema
β”œβ”€β”€ /repl/                   # Read-Eval-Print-Loop (REPL) configuration
β”œβ”€β”€ /scripts/                # Generate GraphQL schema script
β”œβ”€β”€ /src/                    # Source code of GraphQL Server
β”‚   β”œβ”€β”€ /core/               # Core types and helper files, can be used like a global module
β”‚   β”œβ”€β”€ /interface/          # NodeInterface (Relay) and other GraphQL Interfaces
β”‚   β”œβ”€β”€ /modules/            # Modules (think on modules like isolated pieces of your code)
β”‚   β”‚   │── /mutation/       # Module mutations (add an index file to be used on MutationType)
β”‚   β”‚   │── /subscription/   # Module subscriptions (add an index file to be used on SubscriptionType)
β”‚   β”‚   │── /enum/           # Enums related to this module
β”œβ”€β”€ /test/                   # Test helpers

Create-GraphQL

If you want to move faster you should use create-graphql to simplify the creation of a GraphQL Server

Command

Setup

yarn install

Note: If you do not have mongodb installed, please install it:

brew install mongodb

Develop

yarn watch

Test

yarn test

Or

yarn test:watch

Docker and docker-compose

No needs for installing dependencies or running mongod in another terminal window

docker-compose build && docker-compose up

Test

docker-compose -f docker-compose.test.yml build && docker-compose -f docker-compose.test.yml up

Production

# first compile the code
yarn build

# run graphql compiled server
yarn start

Flow

yarn flow

Or

flow

REPL server

yarn repl

awesome > const user = await M.User.find()

Yep, await syntax works on the repl, it is awesome, tks @princejwesley (https://gist.github.com/princejwesley/a66d514d86ea174270210561c44b71ba)

Schema

Update your schema

yarn update-schema

Take a look on the Schema

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].