https://github.com/osaguild/aws-server-less
sample for aws server less architecture
https://github.com/osaguild/aws-server-less
Last synced: about 1 year ago
JSON representation
sample for aws server less architecture
- Host: GitHub
- URL: https://github.com/osaguild/aws-server-less
- Owner: osaguild
- License: mit
- Created: 2022-02-27T04:37:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-25T05:15:23.000Z (about 4 years ago)
- Last Synced: 2025-01-25T04:42:32.297Z (over 1 year ago)
- Language: Python
- Size: 241 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-server-less
sample for aws server less architecture
### endpoint
- dev
- front:`https://server-less.dev.osaguild.com`
- api:`https://api.dev.osaguild.com/server-less`
- prd
- front:`https://server-less.osaguild.com`
- api:`https://api.osaguild.com/server-less`
### How to deploy
- venv
- `python3 -m venv .env`
- `source .env/bin/activate`
- `pip install -r requirements.txt`
- deploy
- `cdk deploy server-less-prd --require-approval never`
- if you deploy to dev. specify `server-less-dev`
### How to use front
- access url
- `https://server-less.osaguild.com`
### How to use API
- select_data
- `https GET "api.osaguild.com/v1/server-less"`
- create_data
```commandline
https POST "api.osaguild.com/v1/server-less" \
param_1="data1" \
param_2="data2" \
param_3="data3" \
param_4="data4"
```
- request patch
- `https POST "api.osaguild.com/v1/server-less/{id}"`
- requst delete
- `https DELETE "api.osaguild.com/v1/server-less/{id}"`