Serverless API developed using claudia.js that can be deployed in AWS lambda with ease.API has all the essential features for a pizzeria shop such as create,update,cancel orders and claudia abstract the need to configure AWS API gateway as it does that for us.
- Listing all pizzas
- Retrieving the pizza orders
- Creating a pizza order
- Updating pizza order
- Canceling a pizza order
- Add/Update image of pizza in S3
- Connect to external delivery system and get notified of the status
- Nodejs
- Claudia-api-builder
- DynamoDB
- Lambda
- Install Nodejs using this guide.
- Install npm or yarn
- AWS account with access to IAM and Lambda.
- Install claudia.js using
npm claudia -g
- Create an AWS profile with IAM full access, Lambda full access and API Gateway Administrator privileges.
- Add the keys to your .aws/credentials file.
- Clone this repository
git clone git@github.com:SIndujan28/Pizzeria.git
- Run the following command to install all the neccessary modules.
npm install
or
yarn install
- Finally run this command and the rest will be taken care of by claudia.
claudia create
- To update the handler function,run
claudia update
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.