Skip to content

aperezg/workshop-microservices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices Demo for Workshop

This repository have the purpose of serve of guide through to our workshop about Microservices on Go.

This repository is divide by branches, each branch represent a final part of each sprint.

Counters API

The application that will be created during the workshop is a one microservices of a more big project about counters. With this workshop we can offer a demostration of how you can create a simple microservice, using Go.

It is built using Gorilla mux, a powerful library to create APIs.

The final microservices will be fully functional, for that we use mongoDB to store the data, and Kafka for sharing events between our microservices and the others.

Libraries

In this application we're using, of course, the standard library, but also some third party libraries as:

Using our microservices

Run docker (only necessary for solution two onwards)

First of all you need a lenses key, it's totally free you only need to register on: https://lenses.io/downloads/lenses/ then they send you a message with a link, this link will have your necessary key.

You need to replace on the docker-compose.yml, {LENSE_ID} for your key and that's all.

$ docker-compose up -d

Build

$ make build

Launch

$ make run

For testing the application we're using a tool that using go test underlying but put colors on it. For that you need to install before to run it:

GO111MODULE=off go get -u github.com/rakyll/gotest

And then you can run:

make test

License

MIT License, see LICENSE

About

Boilerplate to follow our workshop about microservices on Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 76.1%
  • Go 23.9%