Skip to content

ipuldev/microservices-docker-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License LinkedIn

Table of Contents
  1. About The Project
  2. Prerequisites
  3. Installation
  4. Usage
  5. Roadmap
  6. Contributing
  7. License
  8. Credits

About The Project

Microservices docker is an example how micraservices is actually work in a simple environment, managing traefik and authentication is basic implementation on this project.It's written by Go flexible to add another services using another language.

Detail Structure Project :

  • Auth Service
    • Database:
      • Postgresql
    • Routing:
      • Login
      • Signup
      • Authorize
      • Token
  • Product Service
    • Database:
      • Mongodb
    • Routing:
      • Insert
      • Detail
      • Update
      • Delete
      • List

(back to top)

Built With

  • Go
  • Docker
  • Mongodb
  • Postgresql

(back to top)

Prerequisites

  • Docker Engine 20.10.18
  • Docker Compose version 2.11.2

Installation

  1. docker compose up -d

Note make sure your docker version is competible

(back to top)

Usage

Testing module

  • cd [module]
  • go test ./mocks/... -run -w

Testing API

  • Request Sign Up / Login API and then you will get client_id and client_secret for generating token
  • Request Token
    • Set the token response to all Authorization Bearer Request
  • Finnaly you can access any API

For more information

Postman Documentation

(back to top)

Roadmap

  • Auth Service
  • Product Service
  • Environment
    • Routing
    • Docker Compose & Image
    • API Gateway
    • Middleware Auth Forward
  • Unit Testing

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/[FEATURE])
  3. Commit your Changes (git commit -m 'Add some feature')
  4. Push to the Branch (git push origin feature/[FEATURE])
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Credits

Originally built by mmorejon.