Skip to content

heigvd-software-engineering/contextual-guide

Repository files navigation

Contextual-guide

Configuration

(!) The entrypoint is in src/cmd/server/main.go

Http server

You can set app url in the .app.env file.

Database

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

OpenAPI

  1. Install go-swagger

Swagger

  swagger generate spec -o ./swagger.yaml --scan-models

Serve specification

  swagger serve -F=swagger swagger.yaml