Table of Contents
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
- Product Service
- Docker Engine 20.10.18
- Docker Compose version 2.11.2
docker compose up -d
Note make sure your docker version is competible
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
- Auth Service
- Product Service
- Environment
- Routing
- Docker Compose & Image
- API Gateway
- Middleware Auth Forward
- Unit Testing
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/[FEATURE]
) - Commit your Changes (
git commit -m 'Add some feature'
) - Push to the Branch (
git push origin feature/[FEATURE]
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Originally built by mmorejon.