https://github.com/nsmith5/microlith
Example program with simple flags to toggle between microserve and monolith deployment
https://github.com/nsmith5/microlith
Last synced: about 2 months ago
JSON representation
Example program with simple flags to toggle between microserve and monolith deployment
- Host: GitHub
- URL: https://github.com/nsmith5/microlith
- Owner: nsmith5
- Created: 2020-08-18T00:00:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T02:55:00.000Z (almost 6 years ago)
- Last Synced: 2025-01-10T02:59:39.561Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microlith
Golang architecture that can be monolithic or microservice deployed. Check
out the article [here](https://www.nfsmith.ca/articles/monolith_by_default/)
to learn why you might want to do that.
To compile the code run
```shell
$ go build
```
To run in monolith mode run
```shell
$ ./microlith
```
and test out the service with curl as follows:
```shell
$ curl localhost:8080/walk
Oh yeahh you can really talk
$ curl localhost:8080/dance
Uh oh, looks like you can never dance
```
To run the permissions part in a microservice run
```shell
$ ./microlith permissions & // Binds to localhost:8081
$ ./microlith -perms-url http://locahost:8081
```