/go-graphql-ent-template

GO project template using entgo and gqlgen inspired by https://betterprogramming.pub/clean-architecture-with-ent-and-gqlgen-a789933a3665

Primary LanguageGo

go-graphql-ent-template

This is a golang project template using entgo and gqlgen heavaly inspired by this blog post.

Setup for Development

Make sure docker-compose is installed on your system

docker-compose up -d

The development server supports live reloads using air

make start

Unit/Integration Testing

First setup the database for testing

make test_setup_db

The tests can be executed via make

make test       # without coverage
make test_cov   # with code coverage saved to ./coverage

E2E Testing

First setup the database for E2E testing

make e2e_setup_db

The E2E tests can be executed via make

make e2e