Skip to content

Goboiler is my personal golang boilerplate for services & APIs

Notifications You must be signed in to change notification settings

arthurdotwork/goboiler

Repository files navigation

Goboiler

Goboiler is my personal golang boilerplate for services & APIs. It uses the following packages:

Getting started

Prerequisites

Installation

  1. Clone the repository
git clone github.com/arthureichelberger/goboiler
  1. Install dependencies
task install
  1. Start the associated services
docker-compose up -d
  1. Run the migrations
task migrate:fresh
  1. Run the server
task run

Usage

Run the server

task run

Run the tests

task test # also resets the database

Run the linter

task lint

Run the migrations

task migrate:up # to run the next migrations
task migrate:down # to revert the database
task migrate:fresh # to revert the database and run all the migrations

Create a new migration

task migrate:new -- {{migration_name}} # ex: create_users_table

Build the docker image

task docker:package

Intended usage

This boilerplate is mainly designed for deployment in Kubernetes with a PostgreSQL database. Therefore, certain technical decisions were made, particularly regarding liveness and readiness probes.

About

Goboiler is my personal golang boilerplate for services & APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages