Server is using Go, Postgres, GraphQL and Redis.
Server endpoint: https://apistegoer.lukaskucera.com/
Development documentation: https://github.com/stegoer/server/blob/main/README.md
Reference documentation: https://pkg.go.dev/github.com/stegoer/server
Source code: https://github.com/stegoer/server
- Install Go https://go.dev/doc/install
- Install PostgreSQL https://www.postgresql.org/download/
- Install Redis https://redis.io/docs/getting-started/
- Clone this repository
git clone [email protected]:stegoer/server.git- Install dependencies
go get ./...Create a .env file and copy the contents of .env.example file into the .env file
cp .env.example .envmake db-initmake devredis-servermake helpent is used as an ORM in combination with the repository pattern.
Schemas can be found in the folder ent/schema.
GraphQL schemas are located in the folder graphql.
GraphQL server code is generated via gqlgen.
Its output and resolvers can be found in the gqlgen folder.
Database migrations are located in the folder migrations.
Migrations are managed with Makefile.
Tools is a small Go module which contains CLI tooling which is used mainly via Makefile commands.
pre-commit installDeveloped under the MIT license.