Coder Social home page Coder Social logo

tdm's Introduction

Microservice Essentials

The repository contains a TODO microservice written in Go, using modern approaches, domain driven designs(DDD), idiomatic coding styles and integration with Hashicorp Vault, ElasticSeach, Kafka and many more modern tools.

Note

The application uses some features in supported in Go 1.16+

  • usage of embed to bundle static files
  • os.WriteFile to write files

Tools and packages required

# runs and manages sql migration both from CLI and programatically.
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/[email protected]

# converts sql queries into type-safe golang code.
go install github.com/kyleconroy/sqlc/cmd/[email protected]

# creates mock of any interface, basic usgage for unit testing.
go install github.com/maxbrunsfeld/counterfeiter/v6

# generate open api 3 client and types from spec.
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen

Open API and Swagger

OpenAPI is a specification to document REST API's in standard format, while Swagger offer tools to implement these specifications. Read more anout OpenAPI and swagger here.


Some Blog post covering implementation of swagger in go

Some tools and packages availiable

To embed the static-ui, embed is required. Detail explanantion covered here


For better yaml parsing, used this pkg instead of native marshaler.

Author

Akshit Sadana [email protected]

tdm's People

Contributors

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