Skip to content

taxio/gqlgen-ent-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example GraphQL Server by gqlgen and ent

Setup .env:

copy .env.example .env
# and Fill `DATABASE_URL` in .env

Install tools to ./bin:

go generate ./tools.go

DB Migration:

go run cmd/migrate-db/main.go

Create Dummy Data:

go run cmd/create-dummies/main.go

Run Server:

go run server.gp

Access GraphiQL Client: http://localhost:8080

Others

regenerate ent:

./bin/ent generate ./ent/schema

regenerate gqlgen:

./bin/gqlgen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages