Swagger API: link
Generate Resources: generate goa, sqlbindata, swagger related resources.
make generate
Note
|
./app/ , ./swagger/ , sqlbindata*.go under ./migration/** are generated and should not be edited.
|
Build Project: generate resources, build the project, create executable at ./bin/env
.
make build
Clean Project: clean generated resources and vender, tmp, bin directories.
make clean
Run service on localhost: start service on localhost. Check status at - http://localhost:8080/api/status
.
make dev
or alternatively:
export F8_DEVELOPER_MODE_ENABLED=true docker-compose up -d db ./bin/env
Note
|
config.yaml is not processed by default. In order to use it, the following environment variable must be set export F8_CONFIG_FILE_PATH="config.yaml"
|
Unit Test: run tests which does NOT require database.
make test-unit make test-unit-no-coverage
Integration Test: run tests which requires database. Please run docker-compose
command to start database used by integration tests.
docker-compose up -d db make test-integration make test-integration-no-coverage