{"id":19668208,"url":"https://github.com/nsmith5/microlith","last_synced_at":"2026-06-05T20:31:50.419Z","repository":{"id":103593708,"uuid":"288312055","full_name":"nsmith5/microlith","owner":"nsmith5","description":"Example program with simple flags to toggle between microserve and monolith deployment","archived":false,"fork":false,"pushed_at":"2020-08-18T02:55:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T02:59:39.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/nsmith5.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-18T00:00:40.000Z","updated_at":"2020-08-18T02:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"abbfb5ae-de55-458a-a97d-d2465cbad3ea","html_url":"https://github.com/nsmith5/microlith","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmicrolith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmicrolith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmicrolith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmith5%2Fmicrolith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsmith5","download_url":"https://codeload.github.com/nsmith5/microlith/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240977217,"owners_count":19887617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-11T16:34:47.938Z","updated_at":"2025-11-20T21:05:27.607Z","avatar_url":"https://github.com/nsmith5.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microlith\n\nGolang architecture that can be monolithic or microservice deployed. Check\nout the article [here](https://www.nfsmith.ca/articles/monolith_by_default/)\nto learn why you might want to do that.\n\nTo compile the code run\n\n```shell\n$ go build\n```\n\nTo run in monolith mode run\n\n```shell\n$ ./microlith\n```\n\nand test out the service with curl as follows:\n\n```shell\n$ curl localhost:8080/walk\nOh yeahh you can really talk\n$ curl localhost:8080/dance\nUh oh, looks like you can never dance\n```\n\nTo run the permissions part in a microservice run\n\n```shell\n$ ./microlith permissions \u0026 // Binds to localhost:8081\n$ ./microlith -perms-url http://locahost:8081\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmith5%2Fmicrolith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsmith5%2Fmicrolith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmith5%2Fmicrolith/lists"}