Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mjarkk/gorun

Run all your micro services at once
https://github.com/mjarkk/gorun

Last synced: about 1 month ago
JSON representation

Run all your micro services at once

Awesome Lists containing this project

README

        

# `gorun` - run all the GO things at once

Do you have a shitload of **GO** microservices all part of 1 project?
Well in that case this program can solve the problem of 20 open terminal tabs.

### Install
```sh
go install github.com/mjarkk/gorun@master
```

### Create a config
Create a file named `.gorun` or in the parrent dir create a file with the name of the folder with a `.` before it,
Add a config like this:
```json
{
"": {
"server": ".",
"email": "workers/email/Email.go",
"notifi": "workers/notifications/Notifications.go",
"paymnt": "workers/payments/Payments.go --mock",
"export": "ALLOW_EXPERIMENTAL=true workers/exports/Exports.go",
"images": "$ some_non_go_program",
}
}
```
Now when you execute `gorun`, it will run the programs spesified above in paralel and add a prefix to the console output of every program.

### Custom config
You can also add custom configs like this:
```json
{
"minimal": {
"server": ".",
"notifi": "workers/notifications/Notifications.go",
}
}
```
And use the config via `gorun minimal`

### Program `program_name_here` it's output is now broken, will you fix it?
TL;DR: No,
Buttt, if it fixes the output for a lot of things maybe.
The main purpose of this program is to run a lot of little microservices that just log garbage and to know from which micro service came the log.
This is not made for programs that use special printing tricks