Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

thmeitz/ent-graphql-cookiecutter

Repository files navigation

ent-graphql-cookiecutter

Powered by Cookiecutter. This is a fork of cookiecutter-golang.

WARNING: really early development stage

This is not production ready and many things do not yet work as they should. As an example, the whole Docker configuration and make commands!

Features

  • Makefile with management commands
  • Go 1.18 version
  • uses go mod
  • uses gin-gonic
  • uses zap logger
  • injects build time and git hash at build time
  • generates Relay compatible GraphQL server
  • generates cobra cli docs in docs directory

Database Migrations

  • uses go-migrate Ariga Atlas integration

Optional Integrations

  • Can (currently not) create dockerfile for building go binary and dockerfile for final go binary (no code in final container)
  • If docker is used adds docker management commands to makefile

Constraints

  • Uses mod for dependency management

Usage

Let's pretend you want to create a project called "echoserver". Rather than starting from scratch maybe copying some files and then editing the results to include your name, email, and various configuration issues that always get forgotten until the worst possible moment, get cookiecutter to do all the work.

First, get Cookiecutter. Trust me, it's awesome:

$ pip install cookiecutter

Alternatively, you can install cookiecutter with homebrew:

$ brew install cookiecutter

Finally, to run it based on this template, type:

$ cookiecutter https://github.com/thmeitz/ent-graphql-cookiecutter.git

You will be asked about your basic info (name, project name, app name, etc.). This info will be used to customize your new project.

Warning: After this point, change 'Thomas Meitz', 'thmeitz', etc to your own information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published