example-app

module
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: Apache-2.0

README

example-app

Example go application. This application exposes simple CRUD for making notes and utilizes postgres database as storage.

Install

Install prerequisites
Using helm
  1. Add repo: helm repo add example-app https://camaeel.github.io/example-app/
  2. Update repos: helm repo update
  3. Install: helm upgrade --install --namespace example --create-namespace example-app/example-app
Install with local postgres database

This is not intended for production use (jsut as whole application)

Adjust values.yaml (.env) as in the coments (replace section for CNPG with section for bitnami) and then install with:

helm upgrade --install --namespace example --create-namespace example-app  .  --set bitnamipostgres.enabled=true

Local development

Local run using docker-compose
  1. Build docker image: make docker
  2. Run docker-compose up
Testing

Use tests.rest file.

Directories

Path Synopsis
cmd
app command
pkg

Jump to

Keyboard shortcuts

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