DEV Community

Cover image for REST API using AWS SAM + AMPLIFY - Part 1
Lloyd Marcelino
Lloyd Marcelino

Posted on • Updated on

REST API using AWS SAM + AMPLIFY - Part 1

Introduction

This project is aimed at providing a comprehensive guide and structure to build a full-stack application using AWS Amplify and AWS Serverless Application Model (SAM). We leverage the powerful features of these services to create a scalable, secure, and easily maintainable web application.

The idea of this project is not to focus on the front end (UX/UI) design but rather on how to build an application using Amplify and AWS SAM.

About the project

AWS Amplify enables developers to develop and deploy cloud-powered mobile and web applications. It includes a broad set of tools and services that can create scalable, full stack applications, with a focus on simplicity and ease of use.

AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It extends AWS CloudFormation to provide a simplified way of defining the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application.

The combination of Amplify and AWS SAM allows developers to rapidly build and scale applications without worrying about managing servers. This project provides a ready-to-use template to bootstrap your next full stack application.


Project structure

The project is architecturally segmented into two principal components:

Frontend, Powered by AWS Amplify: The frontend is responsible for rendering user interfaces, managing user state, and facilitating interactions with backend resources. It is developed and managed through AWS Amplify. The interface features a tabular display of automobile information, enabling users to perform actions such as editing, saving, and deleting rows. Additionally, it offers a form component to facilitate the inclusion of new entries. GitHub Repository for Frontend

Full Stack CRUD App

Create, read, update, delete


Backend, Orchestrated by AWS SAM: This segment encompasses serverless functions via AWS Lambda, API endpoints through AWS API Gateway, and data storage using AWS DynamoDB. The backend supports comprehensive CRUD (Create, Read, Update, Delete) operations through a RESTful API. The architecture and management of this component are facilitated using AWS SAM. GitHub Repository for Backend

rest api


Next Part 2: Pre-requisites

To use AWS SAM make sure these pre-requisites are completed.

Skip this step if you already have an AWS account, and have both AWS CLI and AWS SAM installed on your computer.
Move to Part 3!

Top comments (0)