Skip to content

rogalni/cng-hello-backend

Repository files navigation

cng-hello-backend

Showcase of a cloud native application in Go.

1. How to run:

Local

go run .\cmd\cng-hello-backend

Local with database

docker compose -f deployment/docker/cng-hello-backend-ressources/docker-compose.yml up --detach

go run .\cmd\cng-hello-backend

docker-compose

docker build -f ./build/package/docker/Dockerfile -t cng-hello-backend --build-arg version=$$(cat VERSION) .

docker compose -f deployment/docker/cng-hello-backend-standalone/docker-compose.yml up --detach

2. Thougths on the project

Initial thoughts

  • Is Go ready to be used in the cloud enterprise environment ?
  • Can Go detach big ship backends like java ?

20.02.2022

  • Some general packages for tracing, logging, and auth with a clean api needs to be implemented in order to not always do everything from scratch

07.06.2023

  • Using otel for logs/traces/metrics with existing contrib instrumentation makes life a lot easier.

3. Done

General

Database

Build/Deployment

Auth

Metrics

Error handling

  • Added general error handling and middleware for gin.

4. Honorable mentions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages