question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically add javascript SPAs

See original GitHub issue

What should we add or change to make your life better?

It would be really cool if Tye recognised javascript SPAs (e.g. React-frontends) that are part of the folder structure. Tye would include them when you use tye run and display them in the dashboard.

Currently I would either create a Dockerfile to generate an image and instruct Tye to use it or run “npm start” and “tye run” simultaneously while adding an ingress to tye.yaml and configure the frontend to use it. If I was a beginner I would have loved to have Tye do this for me.

Why is this important to you?

Lots of projects I hear about from colleagues use different .NET backend services together with a React/Angular/Vue frontend. These would be deployed on the same cluster as part of the microservice-project. Including SPAs to tye would take away further difficulty for newcomers.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
onionhammercommented, Mar 11, 2021

Unless it was part of the .NET application itself or there was a convention that > 90% of people use for their front end apps that was pretty much de-factor, automatic discovery is a losing battle. It woudl be much easier to support calling npm start on a declared folder with package.json though.

Being able to call ‘npm start’ or some NPM command as a tye service would be tremendous

7reactions
tebecocommented, Jul 10, 2020

Please concider that teams just do not open Visual Studio for SPA (they don’t want to)

They higthly uses VsCode and just “Open Folder” That’s why simply relying on the presence of the package.json should be concidered as a “first citizen”

Also it’s probably possible to also look for vsproj or anything else. For example, as of today the tye init adds litereally everything that can starts, well that would just be “one more entry” 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading JavaScript files in SPAs in sequential order that ...
In my SPA, I load pages dynamically using jQuery's .html() method. The issue I've run into is that some pages require multiple JavaScript...
Read more >
Automatic Single Page Applications
SPA is enabled by default in your apps and sites and requires no changes to your workflow or code! If Spa is disabled,...
Read more >
Building a Single Page Application without React
The most popular way to build a SPA with vanilla JavaScript is with Ajax, which can be found in frameworks like jQuery. However,...
Read more >
Part 4: Adding Smaller SPAs to An Existing Application
Learning series on a JavaScript suite of SPAs for microservice environments. Part 4: using smaller single-page apps grouped together instead ...
Read more >
What I wish I had known about single page applications
Using a SPA that relies upon JS for the loading of content can never be fully understood until after it has been delivered....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found