Giter VIP home page Giter VIP logo

l0-wb-nats-service's Introduction

l0-wb-nats-service

API METHODS:

[GET] - get all transactions from DB

curl --location --request GET 'http://localhost:8080/transactions'

[GET] - get transaction by ID from DB

curl --location --request GET 'http://localhost:8080/transaction/63473674-95dc-4d81-9e88-41eb932b863f'

[GET] - get all transactions from cache

curl --location --request GET 'http://localhost:8080/transactions-cache'

[GET] - get transaction by ID from from cache

curl --location --request GET 'http://localhost:8080/transaction-cache/99e16d0d-2bbd-4c6c-8667-1e0e1b7db52f'

USED PACKAGES

> go mod init github.com/truecoder34/l0-wb-nats-service
> go get github.com/nats-io/nats-streaming-server
> go get github.com/nats-io/go-nats-streaming
> go get gorm.io/gorm
> go get github.com/satori/go.uuid
> go get github.com/joho/godotenv
> go get "gorm.io/driver/postgres"
> go get "github.com/gorilla/mux"
> go get "github.com/gin-gonic/gin" 
> go get "github.com/gorilla/mux"

NATS USAGE

NATS Straming vased on NATS (gnatsd) and provides an extra capability of having a persist logs to be used for event streaming systems. https://github.com/nats-io/stan.go/blob/main/examples/

  1. Run Server
    go run nats-streaming-server.go

  2. Run Sender
    go run nats-streaming-server.go

  3. Run Consumer
    go run nats-streaming-server.go

l0-wb-nats-service's People

Contributors

vplotnik avatar truecoder34 avatar

Watchers

James Cloos avatar  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.