https://github.com/capaj/word-count-lambda-sst2
https://github.com/capaj/word-count-lambda-sst2
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/capaj/word-count-lambda-sst2
- Owner: capaj
- Created: 2023-11-09T00:51:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T00:59:46.000Z (over 2 years ago)
- Last Synced: 2025-07-09T13:08:08.674Z (12 months ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Word type count lambda API
To deploy make sure you have sst stack setup on your AWS account and run:
```
pnpm sst deploy --stage prod
```
output should be:
```
SST v2.36.0
➜ App: word-count-lambda-sst2
Stage: prod
Region: us-east-1
Account: 863159954110
Building static site packages/web
> web@0.0.0 build /home/capaj/word-count-lambda-sst2/packages/web
> tsc && vite build
vite v4.5.0 building for production...
✓ 30 modules transformed.
dist/index.html 0.40 kB │ gzip: 0.27 kB
dist/assets/index-d8845442.js 143.72 kB │ gzip: 46.30 kB
✓ built in 570ms
✔ Building...
| API PUBLISH_ASSETS_COMPLETE
| API AWS::CloudFormation::Stack UPDATE_COMPLETE
⠋ Deploying...
✔ Deployed:
API
ApiEndpoint: https://i3h8vgr0oh.execute-api.us-east-1.amazonaws.com
SiteUrl: https://d1im4oskzkkzef.cloudfront.net
```
### Tests
Lambda has a few specs. You can run them with `pnpm test` in root.