rewards-api

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0

README

Database modifications

Create a new Goose migration file:

goose -dir migrations create MIGRATION_TITLE sql

This will create a file in the migrations folder named something like $TIMESTAMP_MIGRATION_TITLE.sql. Edit this with your new innovations. To run the migrations:

go run ./cmd/rewards-api migrate

And then to generate the models:

sqlboiler psql --no-tests --wipe

Generate API documentation

swag init -g cmd/rewards-api/main.go --parseDependency --parseInternal --generatedTime true --parseDepth 2

Directories

Path Synopsis
cmd
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag at 2022-04-11 16:55:07.522307 -0400 EDT m=+0.033802959
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag at 2022-04-11 16:55:07.522307 -0400 EDT m=+0.033802959
internal

Jump to

Keyboard shortcuts

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