golang-scaffolding

command module
v0.0.0-...-ffdf0cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 12 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
domain
auth/api
Package api defines types for external communication.
Package api defines types for external communication.
auth/types
Package types defines internal types.
Package types defines internal types.
gql
pkg
jwt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL