entria / Graphql Dataloader Boilerplate
Licence: mit
Very simple boilerplate using GraphQL and DataLoader
Stars: β 405
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
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
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
Boilerplate using GraphQL and DataLoader
βοΈ TypeScript βοΈ
Check it out TS version of this boilerplate: https://github.com/entria/graphql-dataloader-boilerplate-ts
Blog Posts
- How to implement viewerCanSee in GraphQL
- Testing a GraphQL Server using Jest
- Parallel testing a GraphQL Server with Jest
- Encapsulating data on GraphQL using Loaders
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].