Categorygithub.com/sgaunet/template-api
module
0.2.1
Repository: https://github.com/sgaunet/template-api.git
Documentation: pkg.go.dev

# README

Go Report Card GitHub Downloads GitHub Release

template-api

template-api is an API REST template project.

# install gonew
go install golang.org/x/tools/cmd/gonew@latest
# use gonew to create your project based on this template
gonew github.com/sgaunet/template-cli gitplatform.com/username/awesome_new_project
cd awesome_new_project
git init
git add .
git remote add origin [email protected]:username/awesome_new_project
git push -u origin master

Run

$ cat cfg.yaml
dbdsn: postgres://user:password@host:port/dbname?sslmode=disable
$ template-api -cfg cfg.yaml
...

Install

  • Download the binary in the release section
  • Or use the docker image

Development

This project is using :

There are hooks executed in the precommit stage. Once the project cloned on your disk, please install pre-commit:

brew install pre-commit

Install tools:

task dev:prereq

And install the hooks:

task dev:install

To launch manually the pre-commmit hook:

task dev:pre-commit

# Packages

No description provided by the author
No description provided by the author
No description provided by the author