https://github.com/aeharding/aviation-wx
Aviation alerts backend for https://ppg.report to query for SIGMET, AIRMET, CWA by lat, lon
https://github.com/aeharding/aviation-wx
Last synced: 12 months ago
JSON representation
Aviation alerts backend for https://ppg.report to query for SIGMET, AIRMET, CWA by lat, lon
- Host: GitHub
- URL: https://github.com/aeharding/aviation-wx
- Owner: aeharding
- Created: 2022-09-19T00:38:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T00:09:37.000Z (over 1 year ago)
- Last Synced: 2025-03-20T01:22:59.365Z (over 1 year ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Framework AWS NodeJS Example
This template demonstrates how to deploy a NodeJS function running on AWS Lambda using the traditional Serverless Framework. The deployed function does not include any event definitions as well as any kind of persistence (database). For more advanced configurations check out the [examples repo](https://github.com/serverless/examples/) which includes integrations with SQS, DynamoDB or examples of functions that are triggered in `cron`-like manner. For details about configuration of specific `events`, please refer to our [documentation](https://www.serverless.com/framework/docs/providers/aws/events/).
## Usage
### Deployment
In order to deploy the example, you need to run the following command:
```
$ serverless deploy
```
After running deploy, you should see output similar to:
```bash
Deploying aws-node-project to stage dev (us-east-1)
✔ Service deployed to stack aws-node-project-dev (112s)
functions:
hello: aws-node-project-dev-hello (1.5 kB)
```
### Invocation
After successful deployment, you can invoke the deployed function by using the following command:
```bash
serverless invoke --function hello
```
Which should result in response similar to the following:
```json
{
"statusCode": 200,
"body": "{\n \"message\": \"Go Serverless v3.0! Your function executed successfully!\",\n \"input\": {}\n}"
}
```
### Local development
You can invoke your function locally by using the following command:
```bash
serverless invoke local --function hello
```
Which should result in response similar to the following:
```
{
"statusCode": 200,
"body": "{\n \"message\": \"Go Serverless v3.0! Your function executed successfully!\",\n \"input\": \"\"\n}"
}
```
# aviation-wx