user

command module
v0.0.0-...-76fc54f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 1 Imported by: 0

README

User backend

Prerequisite

Install Packages
go mod tidy

Run

Set environment
# bigtable
export PROJECT_ID=my-project
export INSTANCE_ID=my-instance
export TABLE_NAME=vaccine-reservation-system
# secret
export SECRET=my-secret
go run main.go serve

Development

Set environment
  1. Set the following environment
# serve swagger spec
export SPEC_ENABLED=true
export SPEC_FILES=./docs/swagger-ui

# gin log
export ACCESS_LOG=true
  1. Restart the server

Go to http://localhost:7712/.spec to see the doc.

Regenerate swagger document

Please install go-swagger in advance.

swagger generate spec -o ./docs/swagger-ui/swagger.yaml
Linter

Please install golangci-lint in advance.

golangci-lint run

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package doc Worker.
Package doc Worker.
internal
cmd
env

Jump to

Keyboard shortcuts

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