https://github.com/katallaxie/serverless-aws-dart
⥠đī¸ A template for creating function with the Dart runtime for AWS Lambda
https://github.com/katallaxie/serverless-aws-dart
aws dart serverless
Last synced: 12 months ago
JSON representation
⥠đī¸ A template for creating function with the Dart runtime for AWS Lambda
- Host: GitHub
- URL: https://github.com/katallaxie/serverless-aws-dart
- Owner: katallaxie
- License: mit
- Created: 2020-08-28T13:42:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T08:51:09.000Z (over 3 years ago)
- Last Synced: 2025-03-25T08:03:29.559Z (about 1 year ago)
- Topics: aws, dart, serverless
- Language: Dart
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# âĄī¸ serverless Dart for AWS Lambda template
A sample template for bootstrapping [Dart Runtime for AWS Lambda](https://github.com/awslabs/aws-lambda-dart-runtime) applications with ⥠serverless framework âĄ.
## đĻ Install
Install the [serverless framework](https://www.serverless.com/framework/docs/getting-started/) CLI.
Run the following command in your terminal.
```bash
$ npx serverless install \
--url https://github.com/katallaxie/serverless-aws-dart \
--name hello
```
This will download the source of a sample Dart application and unpack it as a new service named
"hello" in a directory called "hello" đ.
## đĩ Deployment
This template includes an example [GitHub actions](https://github.com/features/actions) [configuration file](.github/workflows/main.yml) which can unlock a virtuous cycle of continuous integration and deployment
( i.e all tests are run on prs and every push to master results in a deployment).
GitHub actions is managed simply by the presence of a file checked into your repository. To set up GitHub Actions to deploy to AWS you'll need to do a few things
Firstly, version control your source. [Github](https://github.com/) is free for opensource.
```bash
$ git init
$ git remote add origin git@github.com:{username}/hello.git
```
Store a `AWS_ACCESS_KEY_ID` `AWS_SECRET_ACCESS_KEY` used for aws deployment in your repositories secrets https://github.com/{username}/hello/settings/secrets
Add your changes to git and push them to GitHub.
Finally, open https://github.com/{username}/hello/actions in your browser and grab a bucket of popcorn đŋ.
## đ´ retiring
Good code should be easily replaceable. Good code should also be easily disposable. Retiring applications should be as easy as creating and deploying them them. The dual of `serverless deploy` is `serverless remove`. Use this for retiring services and cleaning up resources.
```bash
$ npx serverless remove
```
## âšī¸ additional information
* See the [serverless-dart plugin's documentation](https://github.com/katallaxie/serverless-dart) for more information on plugin usage.
* See the [Dart Runtime for AWS Lambda](https://github.com/awslabs/aws-lambda-dart-runtime) for more information on writing Dart Lambda functions