Announcing Create-GraphQL

A command-line utility to build production-ready servers with GraphQL.

Writing a lot of boilerplate to create common pages can be overwhelming sometimes, at @Entria we create the very same basic files every time we start a feature, after a while you notice that you can automate a bunch of processes that you do every day, that's why I created Create-GraphQL (https://github.com/lucasbento/create-graphql).

What is Create-GraphQL?

It's a simple command line utility that can initiate a whole project using GraphQL with KoaJS and generate:

Types;

Mutations;

Relay Connections;

Loaders (using Facebook's DataLoader);

Tests (with the awesome Jest).

A very nice feature included is creating types and mutations from a Mongoose schema file, the CLI will parse the fields and generate a type and/or mutation accordingly.

Why use a CLI?

Kent C. Dodds' shares awesome views on his article An Argument for Automation, we do the same processes every single day, same with our coworkers, how much impact can we make by automating a few of our processes, especially if it's open-sourced?

Being humans, we make mistakes on repetitive tasks, even the most common ones. Those errors would be greatly reduced by simple automated processes.