(!) The entrypoint is in src/cmd/server/main.go
You can set app url in the .app.env
file.
The database configuration is set with some env variables
Key | Exemple |
---|---|
DB_HOST | localhost |
DB_PORT | 5432 |
DB_NAME | contextual-guide |
DB_USER | postgresadmin |
DB_PASS | admin123 |
- Install go-swagger
swagger generate spec -o ./swagger.yaml --scan-models
swagger serve -F=swagger swagger.yaml