Giter Site home page Giter Site logo

brownlabs / todo_list_api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pedrocabido/todo_list_api

0.0 0.0 0.0 17 KB

Small project that implements a To-Do list on a serverless environment using AWS API Gatway, Lambda and DynamoDB.

License: MIT License

Python 84.38% HTML 15.62%

todo_list_api's Introduction

todo-list-api

What's this?

An application that I'm using to learn about AWS and software engineering in general.

It will be a simple To-Do List API following a CRUD approach with the following resources:

  • Amazon HTTP API Gateway: as the main entrypoint
  • AWS Lambda: all the business code will run over this serverless solution
  • DynamoDB: our NoSQL database

I'm trying to do a commit for each major change:

  • 76edcf8ae38c782f77258be61f285b73a0ad1f74 - the inital CRUD application that is completely functional and ready to work
  • 5fb7fc87b6984ffad3b35560e5873bae50d32ec0 - added CORS support and a mini Web Application to test it
  • 18d2426ca23ce689d39d6f24618f30ce7f313076 - use Lambda Layers for reusable code

How To's

Create docker network:

docker network create lambda-local

Create the dynamodb container:

docker run -p 8000:8000 -d --rm --network lambda-local --name dynamodb -v {your-user-root-folder}/.docker/dynamodb:/data/ amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb -dbPath /data

Run the local SAM template API:

sam local start-api --docker-network lambda-local --parameter-overrides AWSENV=AWS_SAM_LOCAL

Run the unit tests:

python3 -m unittest discover tests/unit/ -bv

Validate the SAM template:

sam validate

Build the SAM stack:

sam build

Deploy the SAM stack:

sam deploy --guided

Delete the SAM stack:

sam delete --stack-name todo-list-api

todo_list_api's People

Contributors

pedrocabido avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.