Giter Site home page Giter Site logo

setup-tsoa-hybrid's Introduction

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:

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.

setup-tsoa-hybrid's People

Contributors

ekeren avatar eladcon avatar

Watchers

Mark McCulloh avatar Shai Ber avatar Revital Barletz avatar Ainvoner avatar  avatar  avatar

setup-tsoa-hybrid's Issues

TSOA app compilation is slow

The DX of working on this TSOA app suffers from slow compilation.
This is most likely due to the fact that each time we need to restart the TSOA service.

It hurts the most when:

  1. Hot reloading
  2. Running tests

Here's how to reproduce:

  1. Clone the repo locally: git clone https://github.com/winglang/setup-tsoa-hybrid.git
  2. Run npm i on the project folder.
  3. Then wing run src/main.w.
  4. Modify code to see that reloading Wing Console takes 10 seconds.
    • More importantly modify the ts files (the tsoa source code is something that is usually changed)
    • modify src/main.w and save

node zombies

% ps -ef  | grep node  | grep setup-tsoa-hybrid/src/wing/  
% npm run dev
% ps -ef  | grep node  | grep setup-tsoa-hybrid/src/wing/  | wc -l 
       4

Ctrl-C (on the npm run dev command)

% ps -ef  | grep node  | grep setup-tsoa-hybrid/src/wing/  | wc -l 
       2

I removed all test to not take into account this: winglang/wing#6316

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.