Skip to content

drsantos20/address-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Address API

Customer and Address API

Overview

RabbitMQ, celery and Kombu was used to exchange messages between each app/service

Following the diagram below, celery keeps consumer up to listen if has a new message to given a queue.

For the producer part it also was used kombu to send a message to given a queue.

oder-address-ms

der

Getting Started

Following these instructions will make this project running in your local machine development.

The entire customer app needs from other project to be up as well which is: customer-api

To run

1- git clone https://github.com/drsantos20/customer-service.git
2- cd customer-service
3- docker-compose up --build

4- cd ..
5- git clone https://github.com/drsantos20/address-service.git
5.1 Add your google maps API key into /address-service/api/settings.py -> `GOOGLE_API_KEY`
6- cd address-service
7- docker-compose up --build

Prerequisites

  • Have a google maps api key
- Python
- Docker
- docker-compose
- Postgres

Installing

1- Customer

1- git clone https://github.com/drsantos20/customer-service.git
2- cd customer-service
3- python3 -m venv env
4- source env/bin/activate
5- docker-compose up --build

2- Address

1- git clone https://github.com/drsantos20/address-service.git
2- cd address-service
2.1 Add your google maps API key into /address-service/api/settings.py -> `GOOGLE_API_KEY`
3- python3 -m venv env
4- source env/bin/activate
5- docker-compose up --build

Running tests

Make ensure if rabbitmq and postgres images is running.

to check docker ps

python manage.py test

Available URLS:

POST http://127.0.0.1:8000/api/v1/order/

Author

  • Daniel Santos - Trying to keep simple and clean - drsantos20

About

Address Service API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published