Skip to content

Commit

Permalink
add rust-hyper
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Oct 7, 2024
1 parent 8bca263 commit 4948c2b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/birth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
name:
description: "The directory for the new project (e.g. node/express or python/flask)"
required: true
from:
description: "The source branch to copy from"
required: false
default: "main"

permissions:
id-token: write
Expand All @@ -18,6 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.from }}
submodules: recursive
fetch-depth: 0

Expand All @@ -35,7 +40,8 @@ jobs:
THE_NAME: ${{ github.event.inputs.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clear submodules
- if: ${{ github.event.inputs.from != 'main' }}
name: Clear submodules
run: |
grep -oP '(?<=path = ).*' .gitmodules | xargs -I {} git submodule deinit -f {}
grep -oP '(?<=path = ).*' .gitmodules | xargs -I {} git rm -f {}
Expand All @@ -45,7 +51,8 @@ jobs:
git add .
git commit -m "Clear submodules" || echo "No changes to commit"
- name: Clean Directory
- if: ${{ github.event.inputs.from != 'main' }}
name: Clean Directory
run: |
mv .templates /tmp/.templates
rm -fr .github
Expand All @@ -55,7 +62,8 @@ jobs:
git add .
git commit -m "Clean directory" || echo "No changes to commit"
- name: Add Templates
- if: ${{ github.event.inputs.from != 'main' }}
name: Add Templates
run: |
mkdir -p .github/workflows
cp /tmp/.templates/scaffoldly.yml .github/workflows/scaffoldly.yml
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ node_modules/
package-lock.json

# Next.js Stuff
next-env.d.ts
next-env.d.ts

# Rust Stuff
target/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This repository contains example usage of the [`scaffoldly`](https://scaffoldly.dev) toolchain.

## Introduction

[Scaffoldly](https://github.com/scaffoldly/scaffoldly) allows you to run **any HTTP server** inside AWS Lambda. It requires **no code** changes to your application and a [simple configuration](https://scaffoldly.dev/docs/config/) in the project's configuration file. Deployments can be done [Locally](https://scaffoldly.dev/docs/cli/#scaffoldly-deploy) or in [GitHub Actions](https://scaffoldly.dev/docs/gha/).

See the various examples below for running various frameworks in AWS Lambda using [Scaffoldly](https://scaffoldly.dev).

⭐️ Please [give `scaffoldly` a star](https://github.com/scaffoldly/scaffoldly) on GitHub! ⭐️

<!--
## Getting Started
Expand Down Expand Up @@ -36,6 +44,7 @@ We've created a handful of examples to show how Scaffoldly can be used.
| Node | Next.js (`export` mode) | [`node-nextjs-export`](https://github.com/scaffoldly/scaffoldly-examples/tree/node-nextjs-export) | [Function URL](https://jtzom2obx3owx4gn4vluichvze0frzcn.lambda-url.us-east-1.on.aws) | ~200 MB |
| Node | Next.js (`standalone` mode) | [`node-nextjs-standalone`](https://github.com/scaffoldly/scaffoldly-examples/tree/node-nextjs-standalone) | [Function URL](https://uyf6bj4oqifqnfwivhdsy25giu0eaauf.lambda-url.us-east-1.on.aws) | ~250 MB |
| Node | React (with `vite`) | [`node-react-vite`](https://github.com/scaffoldly/scaffoldly-examples/tree/node-react-vite) | [Function URL](https://qgb37tjq2vu4qlejnu2p7zzire0tqtsy.lambda-url.us-east-1.on.aws) | ~200 MB |
| Rust | Hyper | [`rust-hyper`](https://github.com/scaffoldly/scaffoldly-examples/tree/rust-hyper) | [Function URL](https://x3nlq7rmjc675skupaksowqut40fflpc.lambda-url.us-east-1.on.aws) | ~150 MB |

## Questions, Feedback, and Help

Expand Down

0 comments on commit 4948c2b

Please sign in to comment.