Skip to content

chris-ramon/golang-scaffolding

Repository files navigation

golang-scaffolding Tests codecov

A golang scaffolding for getting started new projects.

Getting Started

Replace Paths
ag -l 'chris-ramon/golang-scaffolding'| xargs sed -i 's|chris-ramon/golang-scaffolding|<your-org>/<your-repo>|g'
Create .env file

APP_RSA

cat app.rsa | base64 | tr -d '\n'|pbcopy

APP_RSA_PUB

cat app.rsa.pub | base64 | tr -d '\n'|pbcopy
Running
./bin/dev.sh
GraphQL Playground

http://localhost:8080/graphql

DB Migrations
docker exec -it golang-scaffolding-app-1 bash

Up one migration:

migrate -database "postgres://admin:admin@db:5432/local?sslmode=disable" -path "./db/migrations" up 1

Down one migration:

migrate -database "postgres://admin:admin@db:5432/local?sslmode=disable" -path "./db/migrations" down 1
Features

Contains the following example domains:

  • Env Variables.
  • Config.
  • Auth.
  • JWT.
  • GraphQL.
  • PostgreSQL.
  • Type Safe SQL.
  • Docker Compose.
  • Live reload.
  • Admin.
  • Unit tests.

About

Golang project template/scaffolding for new projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published