GithubHelp home page GithubHelp logo

astaphobia / nats-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from threedotslabs/nats-example

0.0 2.0 0.0 13 KB

An example Go project for running local development environment, with hot code reloading.

License: MIT License

Dockerfile 3.65% Go 96.35%

nats-example's Introduction

nats-example

This is an example Go project for running local development environment. It features:

Read more in our blog post: Go Docker dev environment with Go Modules and live code reloading

asciicast

Running

To start the services, simply run:

docker-compose up

Open new terminal and send some messages:

$ curl localhost:5000 -d "this is my message"
Sent message: this is my message with ID 01D09P02SBW5D0QPWP14QQZJWH

You should see the messages in the subscriber service output:

subscriber_1  | [00] 2019/01/03 11:01:27 received message: 01D09P02SBW5D0QPWP14QQZJWH, payload: this is my message

nats-example's People

Contributors

m110 avatar roblaszczak avatar

Watchers

James Cloos avatar Ketut Ariasa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.