Standard Tooling for Go-Gulfstream Development
Make golang microservices based on event-driven architecture
Not ready for production. In the process of testing and fixing in internal projects.
- Requirements
- Installation
- Create a new manifest file
- Initialize a new project
- Add mutations
- Apply changes
- A short example
- Manifest
Install golang is recommended
$ git clone [email protected]:go-gulfstream/gs.git
$ cd gs
$ make build-linux
$ make build-mac
$ go install github.com/go-gulfstream/gs/cmd/gs@latest
$ docker pull gulstream/gs:latest
$ docker run --rm docker.io/gulstream/gs:latest version
With empty manifest file
$ gs manifest path/to/project
$ docker run -v path/to/project:/gs -w /gs docker.io/gulstream/gs:latest manifest /gs
With interactive mode
$ gs manifest -i path/to/project
With data example
$ gs manifest -d path/to/project
$ docker run -v path/to/project:/gs -w /gs docker.io/gulstream/gs:latest manifest -d /gs
$ gs init path/to/project
$ docker run -v path/to/project:/gs -w /gs docker.io/gulstream/gs:latest init /gs
$ gs add path/to/project
$ gs apply path/to/project
OR short entry
$ gs add -a path/to/project
OR See step 4
Edit the path/to/project/gulfstream.yml
manifest file
Add command mutations OR/AND event mutations
Then execute apply command:
$ gs apply path/to/project
$ docker run -v path/to/project:/gs -w /gs docker.io/gulstream/gs:latest apply /gs
$ mkdir ~/myproject
$ gs manifest -d ~/myproject
$ gs init ~/myproject
$ gs add -a ~/myproject