https://github.com/cloudacademy/ca-python-serverless
https://github.com/cloudacademy/ca-python-serverless
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudacademy/ca-python-serverless
- Owner: cloudacademy
- License: mit
- Created: 2017-10-08T18:14:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-12T18:08:36.000Z (almost 4 years ago)
- Last Synced: 2025-04-09T12:21:21.848Z (about 1 year ago)
- Language: JavaScript
- Size: 211 KB
- Stars: 21
- Watchers: 13
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
try:
event['queryStringParameters']['id']
except:
pass
```
to
```python
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 | '*' |