This project is an API for delivery built with Serverless framework in AWS infrastructure.
- Serverless Framework
- AWS Lambda
- API Gateway
- Simple Queue Service SQS
- CloudFormation
- AWS SDK
- Node.js
- npm
- Serverless framework
sudo npm install -g serverless
- Make sure the credentials is set.
serverless config credentials --provider aws --key <access-key> --secret <secret-access>
- Deploy function
serverless deploy
Request: POST
{
"name": "Walter Hartwell White",
"address": "308 Negra Arroyo Lane, Albuquerque, New Mexico, 87104",
"pizzas": ["margarita", "napolitana"]
}
For clean AWS account you should run:
sls remove
Watch logs in serverless framework
serverless logs -f makeOrder -t
- It's important to make sure the yml file has the same localization region as your account.
- Same application with open source tools: (OpenFaaS, RabbitMQ y MySQL -> Kadev) 🚚🚚🚚