go-notes

module
v0.0.0-...-b5678d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT

README

Go Notes example

Tech stack:



go-notes.svg


Usage local:
make docker-up   // run all containers with application

The service is available at http://localhost:5555/v1/api. You can check it using Postman by importing the collection located at third_party/PostmanCollection/Notes.postman_collection.json.

Stop containers:
make docker-down      // stop containers

TESTS
1. Postman

To import a collection into Postman, you should use the Import button in the top-left corner of the Postman window.

Before running the tests, it's necessary to set the required environment variables:

baseUrl: the address of the server where the project is running.

Example: http://localhost:5555/v1/api

To run the tests in Postman, you should select the collection (Notes -> Tests), and then click the button (Run folder -> Run Notes).

The passed tests will appear as follows:

postman_tests.png


Unit tests
make test-run   // run unit tests

k8s

To deploy the project in Kubernetes (k8s), Helm is used.

cd .charts/go-notes/proxy && \
helm dependency update && \
helm install -f values.yaml go-notes .

Checking the Swagger documentation:

Take the generated file {{service}}.swagger.json from the third_party/OpenAPI directory. Paste it into the Swagger Editor.

open_api.png

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL