Check the .env file if you want to expose the API on a different port than 8080.
assignment$ docker-compose up
assignment$ make build/docker/local
assignment$ docker run -p 8080:80 docker.io/trtstm/iban-service:dev
Build the binary, this will create a binary iban-service
in the root directory.
assignment$ make build
assignment$ API_ADDRESS=:8080 ./iban-service
To view the swagger documentation please visit http://127.0.0.1:8080/docs.
Example curl:
assignment$ curl -X GET 127.0.0.1:8080/api/validate/iban/SE1234
assignment$ curl -X GET 127.0.0.1:8080/api/validate/iban/NL80INGB6519574414
assignment$ make test