go build ./cmd/main.go
PORT=8080
DATABASE=host\=localhost user\=postgres password\=qwerty123 dbname\=petitions port\=5432
EMAIL_VALIDATOR_TOKEN=d6ba3449152602cbd63d215ed1ee612e6b3134eb
EMAIL_VALIDATOR_SECRET=fbce4c61182373033f9184812ef91cb7180a05d6
CREATE TABLE petitions
(
id serial PRIMARY KEY UNIQUE,
name character varying,
author_email character varying,
body character varying
);
Env:
TRY_MIGRATE = TRUE
.\openAPI\go-swagger.exe generate server -C .\templates\codegen-config.yaml --template-dir .\templates -f .\openAPI\swagger.yaml -P models.Principal