https://github.com/winglang/setup-tsoa-hybrid
https://github.com/winglang/setup-tsoa-hybrid
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/winglang/setup-tsoa-hybrid
- Owner: winglang
- Created: 2024-04-10T10:50:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T07:39:45.000Z (about 2 years ago)
- Last Synced: 2024-05-02T20:27:01.293Z (about 2 years ago)
- Language: TypeScript
- Size: 315 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# guide-tsoa-hybrid
This repo conatins a demo showing how to use Wing to run a TSOA application which can access both local resources and cloud resources.
### Installation
`npm i`
### Testing
`wing test backend/main.w`
### Optional - Deploy the external resources
If you want to interact with the external cloud resources, run:
```sh
wing compile -t tf-aws external/main.w
cd external/target/main.tfaws
terraform init
terraform apply
```
Note the terraform outputs are printed after the deployment is done. Copy those values to `wing.json` to interact with those resouces.