Help us shape the future of Go! Take the 2026 Go Developer Survey

go_boilerplate

command module
v0.0.0-...-37e4116 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 15 Imported by: 0

README

go_boilerplate

Backend Boilerplate using go, containing routes for user creation and authentication. This project assumes you have a postgresql instance running on docker.

Run project locally

First steps

  • Clone repo
  • Create a Makefile using Makefile.example as a model, filling in local credentials
  • Create a config.toml file using config.example.toml as a model

Creating database

Run the following command

$ make createdb

Running migrations

Install golang-migrate, available at https://github.com/golang-migrate/migrate. Then, run the following command

$ make migrateup

Running project

Execute the following command

$ go run .

Running tests

Execute the following command

$ make test

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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