adegoodyer / ca-python-serverless

Example Vue.js ToDo app utilising Serverless functions written in Python and user authorisation via Cognito user pools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Academy Serverless Development With Python

An example application for "serverless" development on AWS.

This is a demo application based on the TODO MVC for Vue.js. This code is intended to be used with the courses and learning content at cloudacademy.com.

There are some errors in the code; which is intentional to help with the course. If you're looking at this outside of the context of the course then you'll need to edit the following two files.

todo/api/get.py and todo/api/delete.py

Change

    try:
        event['queryStringParameters']['id']
    except:
        pass

to

    try:
        todo_id = event['queryStringParameters']['id']
    except:
        pass

API Gateway CORS Headers

Header Value
Access-Control-Allow-Headers 'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'
Access-Control-Allow-Methods 'DELETE,POST,GET,OPTIONS,PUT'
Access-Control-Allow-Origin '*'

About

Example Vue.js ToDo app utilising Serverless functions written in Python and user authorisation via Cognito user pools.

License:MIT License


Languages

Language:JavaScript 90.3%Language:Python 7.9%Language:HTML 1.5%Language:Shell 0.4%