Assessment de Microserviços
```
pip3 install -U setuptools
pip3 install flasgger
pip3 install peewee
pip3 install boto3
```
Basta rodar o models.py de cada app.
scp -i "hihiray.pem" ~/Documents/Programming/faculdade/microservice-at.zip ec2-user@ec2-52-67-178-65.sa-east-1.compute.amazonaws.com:/home/ec2-user
- Orders https://app.swaggerhub.com/apis/hi-hi-ray/Orders_API/1.0.0
- Stock https://app.swaggerhub.com/apis/hi-hi-ray/ToyStock_API/1.0.0
vim /etc/nginx/sites-enabled/flaskapp
content
server {
listen 80;
server_name IPv4_Public_IP;
location / {
proxy_pass http://127.0.0.1:porta;
}
}
- SQS - Orders
- 2 API Gateways
- 2 EC2 - Ubuntu
- 1 Lambda - Listener Async