Giter VIP home page Giter VIP logo

username-finder's Introduction

username-finder

First app written on Golang: just to touch Goroutines and Mocks Currently only one endpoint is impemented. WIP. List of endpoints described below

API methods:

POST: /username
	input : JSON body ["url1", "url2", ..."urln"]
	outout : JSON  ["valid-url1", "valid-url2", ..."valid-urln"]

POST: /qr
	input : JSON body ["url1", "url2", ..."urln"]
	return : qr code in text format for valid urls

Rabbit MQ

1 - in helper added sender of rabbit mq messages. If endpoint used, it will be send to consumer 2 - consumer is in /rabbit-mq-receiver folder

How to run :

Docker RabbitMQ:

	#t0> docker run --detach --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

####Consumer :

	#t1> cd rabbit-mq-receiver
	#t1> go run .\receive-mq.go

####Server-API (Sender#1): Simple API. Will push messages each time when endpoints are used.

	#t2> cd server
	#t2> go run .\main.go

####Sender #2 Simple sender which push messages to the same queue.

#t3> cd .\rabbit-mq-sender\
#t3> go run .\send-mq.go

Practice with rabbit-mq

folder : go-tabbit-mq/ copy pasted from : https://github.com/Pungyeon/go-rabbitmq-example

added lib with settings

...

sender

	#t1> go run consumer.go log.WARN log.ERROR
	#t2> go run consumer.go log.*
	#t3> go run consumer.go *

consumer

	#t3> go run sender.go RAP
	#t3> go run sender.go TEST
	#t3> go run sender.go log.WARN

username-finder's People

Contributors

vplotnik avatar truecoder34 avatar

Stargazers

Adolf 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.