Event Service
- An event log as a service
- Build with Go, Elastic Search and Kafka
- A minimal docker container
- Automatically pushes it to dockerhub if tests pass
Setup
Env vars
export PORT=3000
export DATASTORE_URL=http://@docker:9200
export BROKER_URL=localhost:9093
Installation
mkdir -p $GOPATH/src/github.com/rafaeljesus
cd $GOPATH/src/github.com/rafaeljesus
git clone https://github.com/rafaeljesus/event-srv.git
cd event-srv
make all
Running server
./dist/event-srv
# => Starting Event Service at port 3000
Create a Event through HTTP
curl -X POST -H "Content-Type: application/json" \
-d '{"name": "order_created", "status": "success", "payload": {}}' \
localhost:3000/events
"OK"
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create new Pull Request
Badges
GitHub @rafaeljesus ·
Twitter @rafaeljesus