Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prandogabriel/workshop-serverless-aws
"Repositório com código base workshop sobre serverless na AWS ministrado na semana acadêmica de Eng. Comp e ADS da UTFPR."
https://github.com/prandogabriel/workshop-serverless-aws
Last synced: 25 days ago
JSON representation
"Repositório com código base workshop sobre serverless na AWS ministrado na semana acadêmica de Eng. Comp e ADS da UTFPR."
- Host: GitHub
- URL: https://github.com/prandogabriel/workshop-serverless-aws
- Owner: prandogabriel
- Created: 2024-06-03T16:45:55.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-05T11:23:21.000Z (5 months ago)
- Last Synced: 2024-06-05T13:03:51.427Z (5 months ago)
- Language: TypeScript
- Size: 5.56 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro a app serverless na AWS com NodeJs
### Instalar as deps
```bash
npm i
```### Rodar local com serverless offline
```bash
npm run start
```
testar req
```bash
curl --request POST \
--url http://localhost:3000/dev/hello \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/8.6.1' \
--data '{
"name": "Frederic"
}'
```### Deploy da app
```bash
npm run sls deploy -- --stage dev
```### Deletar a app
```bash
npm run sls remove -- --stage dev
```### Criar url encurtada
```bash
curl --request POST \
--url http://localhost:3000/dev/shortener \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/8.6.1' \
--data '{
"url": "https://docs.google.com/presentation/d/1TSHEy-mnCo9PcbIchY43Na67zXHTDgvpqd6pocNJMtQ/edit?usp=sharing"
}'
```