/dino-park-insomnia

Sandbox/experiment repository to try out Insomnia's Git Sync features.

Primary LanguageMakefile

dino-park-insomnia

Sandbox/experiment repository to try out Insomnia's Git Sync features.

Prerequisites

Setup

Run Kong Gateway (and needed containers):

make build

Apply configuration to Kong Gateway:

deck sync -s kong.json

To clean up containers run make clean

Run

  • Import this repository on Insomnia via Git (link to repo is: https://github.com/filfreire/dino-park-insomnia.git)

Insomnia Git Sync image

  • If you make changes to the Spec, you can re-run on Insomnia the Declarative config generation (see image bellow), and edit the contents of kong.json file with the output. Don't forget to re-apply it to your Kong gateway instance by running deck sync -s kong.json.

Declarative configuration for Kong image

Other

Troubleshooting

  • To check connection between DecK and your local Kong instance: deck ping

Useful documentation

Gitlab Example

  • Spin up Gitlab Docker container: docker-compose -f gitlab/docker-compose.yml up
  • Get the root username password: sudo docker exec -it gitlab_web_1 grep 'Password:' /etc/gitlab/initial_root_password
  • Login to the Gitlab Docker container
  • Setup a personal access token (see this link on how to do it)
  • Create a blank repo, and import it to Insomnia (e.g. http://localhost/root/example-repo.git)