Skip to content

indrabayuu/simple-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Implementation of Microservice Using Go (Golang)

Folder Structure

  • Database: contains connection to remote PostgreSQL and DDL
  • handlers: contains several handlers for application
  • middleware: contain authorization for JWT Token
  • model: contains Database Schema
  • utils: extra simple checker for math and string (just for fun)

Tech

  • REST API with Gin
  • gPRC and Protobuf
  • JWT Token for authorization
  • JSON request & response
  • PostgreSQL as RDBMS
  • GORM as database management
  • CRUD

Database

  • auth
  • account
  • transaction
  • transaction_category

API Service

  • /auth/login -> Auth Service Auth/Login
  • /auth/signup -> Auth Service Auth/Signup
  • /account/create
  • /account/read
  • /account/update
  • /account/delete
  • /account/list
  • /account/my -> Middleware Validate Token to Auth Service Auth/Validate

Created By

Rizky Indrabayu

About

A simple microservice with Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages