To install golang just follow the steps from website:
To install docker and docker-compose just follow the steps from website:
To install postman just follow the steps from website:
To install jq just follow the steps from website:
To import the collection and environment from repository on folder postman into your postman app please follow the steps:
- To open the Postman application, click on its icon on the taskbar.
- Click on the file tab and then click import.
- Choose the import file method and then click on "Upload files".
- Choose the correct items to import and press open. Postman will automatically import the items.
Start vault:
make config-up
Generate secrets from vault:
make generate-secrets
Run application:
make run-cocus-gateway
Or run build application:
make run-cocus-gateway-build
After started the system, then you are able to run E2E tests:
make integration-test
To test and test with coverage:
make test
make test-cover
To run lint:
make lint-run
To shutdown vault:
make config-down
To clean binary
make clean
- First step is create a new user to login into system
- Then login into system to get token auth
- Token is automatically saved
- Token is included in request's header
- Now you are able to create and get all triangles from system