{"id":41849251,"url":"https://github.com/qn-ng/microcalc","last_synced_at":"2026-01-25T10:13:22.114Z","repository":{"id":36976292,"uuid":"148350832","full_name":"qn-ng/microcalc","owner":"qn-ng","description":"A minimal, polyglot, microservice-oriented calculator","archived":false,"fork":false,"pushed_at":"2023-01-20T04:04:55.000Z","size":861,"stargazers_count":21,"open_issues_count":63,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-02-26T11:06:30.151Z","etag":null,"topics":["istio","kubernetes","microservices-application","polyglot","reactive-programming","service-mesh"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qn-ng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-11T17:00:45.000Z","updated_at":"2022-11-28T07:39:21.000Z","dependencies_parsed_at":"2023-02-11T23:30:40.111Z","dependency_job_id":null,"html_url":"https://github.com/qn-ng/microcalc","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/qn-ng/microcalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qn-ng%2Fmicrocalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qn-ng%2Fmicrocalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qn-ng%2Fmicrocalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qn-ng%2Fmicrocalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qn-ng","download_url":"https://codeload.github.com/qn-ng/microcalc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qn-ng%2Fmicrocalc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28751231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:58:17.166Z","status":"ssl_error","status_checked_at":"2026-01-25T09:55:56.104Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["istio","kubernetes","microservices-application","polyglot","reactive-programming","service-mesh"],"created_at":"2026-01-25T10:13:21.419Z","updated_at":"2026-01-25T10:13:22.102Z","avatar_url":"https://github.com/qn-ng.png","language":"Java","readme":"# MicroCalc: A polyglot, microservice-oriented calculator\n\n[![CI](https://github.com/nquocnghia/microcalc/workflows/CI/badge.svg)](https://github.com/nquocnghia/microcalc/actions?query=workflow%3ACI)\n\nℹ Looking for a microservice / service mesh sample app ? You might want to have a look at this.\n\n## Services architecture\n\n![architecture](diagrams/architecture.svg)\n\n![api](diagrams/api.gif)\n\n## Deploy to Kubernetes (Istio required)\n\n**Requirements:** helm\n\n**Commands:**\n\n- Modify `helm/microcalc/values.yaml` and update your domain name\n- Execute the following commands to deploy microcalc\n```shell\n$ kubectl create namespace microcalc\n$ kubectl label namespace microcalc -l istio-injection=enabled\n$ helm template helm/microcalc | kubectl apply -n microcalc -f -\n```\n\nThe application will be accessible at:\n\n- Parser service: http://APP_DOMAIN\n    - GET /api/v1/status\n    - POST /api/v1/calculate\n\n**Run acceptance tests (as Job):** \n\n```shell\n$ kubectl run robot -n microcalc --image=foly/microcalc-robot --restart=OnFailure -l 'app=microcalc-robot'\n\n$ export POD_NAME=$(kubectl get pod -l 'app=microcalc-robot' -n microcalc -o jsonpath --template='{.items[0].metadata.name}')\n$ kubectl logs $POD_NAME -n microcalc\n```\n\n## Local run\n\n**Requirements:** docker, docker-compose\n\n**Commands:** `$ docker-compose up`\n\nThe application will be accessible at:\n\n- Parser service: http://localhost:8080\n    - GET /api/v1/status\n    - POST /api/v1/calculate\n\n**Run acceptance tests:**\n\n```shell\n$ docker-compose -f docker-compose.yml -f docker-compose.ci.yml run --rm robot\n```\n\n![robot](diagrams/robot.gif)\n\n## Usage guide\n\n- Parser service API\n\n```\nPOST /api/v1/calculate HTTP/1.1\nContent-Type: application/json\n[...]\n\n{\n    \"input\": \"1+1\"\n}\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n[...]\n\n{\n    \"operands\": [\n        1,\n        1\n    ],\n    \"origins\": [\n        {\n            \"result\": 1,\n            \"service\": \"name: parser, version: v1\"\n        },\n        {\n            \"result\": 1,\n            \"service\": \"name: parser, version: v1\"\n        }\n    ],\n    \"result\": 2,\n    \"service\": \"name: add, version: v1\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqn-ng%2Fmicrocalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqn-ng%2Fmicrocalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqn-ng%2Fmicrocalc/lists"}