Skip to content

TheMaru/training-organiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

training-organiser

Private app to organize trainings and keep track of other organisational topics

Database migrations

Database migrations are handled via Goose

go install github.com/pressly/goose/v3/cmd/goose@latest

Migration files are located in folder sql/schema

To migrate to the newest state you can use

goose postgres postgres://<user>:<host>:<port>/<db-name> up

Database code

Code that interacts directly with the database is generated by SQLC.

You can generate the code via

sqlc generate

Env file

Before starting please copy ./.env.example and enter local env settings

cp ./.env.example ./.env

Swaggo API Documentation

To automatically create a swagger interface to document and test the code this project uses Swaggo

To install the command-line tool please run

go install github.com/swaggo/swag/cmd/swag@latest

To document the API this project uses Swaggo if you have added something to the API or changed the annotations please run

swag init -g cmd/api-server/main.go

About

Private app to organize trainings and keep track of other organisational topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors