Coder Social home page Coder Social logo

jytte's Introduction

Jytte

jytte is a small http based application written in go with for demo and testing purposes.

Usage

The application will listen for requests on three endpoints:

/health will response with a http response 200 when the application is running

/metrics serves OpenMetrics (Prometheus) endpoint based on OpenTelemetry handler

/echo/ a simple echo server sending any incomming input back to the requestor

/entropy/ a server emulating having multiple dependencies on other services

Besides this the application exposes the Go pprof allowing runtime profiling and more. This is served on the default path of /debug/pprof.

Development

The project aims at following the best practices as described in project-layout.

Run the application locally simply use go run like so:

go run cmd/jytte/main.go

or from Bazel:

bazel run //cmd/jytte:jytte

Building local container image run:

bazel run --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //cmd/jytte:docker_image

Update Bazel dependencies generated from go.mod:

bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%go_dependencies

Update the Bazel build files:

bazel run //:gazelle

jytte's People

Contributors

langecode avatar kimnorgaard avatar

Watchers

James Cloos avatar Allan Højgaard Jensen avatar Karsten Thygesen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.