Prerequisites
- Install and setup docker on the system.
- A Microsoft Azure account and a container within a storage account.
How to Install/Use
- Unzip the files.
- Open microservice2\dockerfile.
- Enter\Fill the details of your AZURE_STORAGE_ACCOUNT(name), AZURE_STORAGE_ACCESS_KEY, AZURE_STORAGE_CONTAINER(name).
- Open cmd.
- Cd to the folder which has the docker-compose.yml.
$ cd <path_to_docker-compose.yml>
- Run command - docker-compose build
$ docker-compose build
- Run command - docker-compose up
$ docker-compose up
- After a few mins the containers should be created and running.
- Use the API documentation document for the list of APIs supported by the microservices.(under API_Docs folder open index.html)
Example Senario
- Make an API call to 'http://localhost:7070/upload' with 2 images as form data.
- The Example_images folder has 2 example images to use as an input to the API.
- The API will upload the images to the cloud with names - known_image.png, unknown_image.png
- Then it will make a call to another microservice to verify if the unknown face from unknown_image is matching with the known face from known_image.
Tech Used
- Python - For Microservice 1
- GoLang - For Microservice 2
- Docker - For deploying the services
- Swagger - For API Docs
Frameworks Used
- Django - Webframework for python
- Mux - Web toolkit for GoLang
- GORM - ORM library for GoLang
- Azure for go - Azure SDK for GoLang