Skip to content

A simple example of a Serverless Todolist App using AWS SAM in Python 3.8.

Notifications You must be signed in to change notification settings

S4lem/aws-serverless-example

Repository files navigation

Todo-list Back-end Application with SAM

This project contains source code for a serverless Todos application using Python 3.8 and SAM (Serverless Application Model).

You will be able to add, remove and list the Todo-list.

It includes the following files and folders.

  • lambdas - Code for the application's Lambda functions.
  • layers - Code to avoid code duplication accross lambda functions.
  • postman_collection.json - pre-made requests
  • Makefile : command shortcuts
  • template.yaml - A template that defines the application's AWS resources.

The application uses several AWS resources:

  • Lambda Functions
  • Layers
  • Api Gateway
  • DynamoDB
  • CloudFormation

Prerequisites :

Run locally

To build and deploy your application for the first time, run the following in your shell:

make deploy

If you're on windows and don't have the make command available, just open the Makefile and run manually the subsequent commands.

Then, run the following command to start the API locally on port 3000.

make start-api

You're now free to test locally. You can also import the provided postman collection to Postman.