Running React app through Azure WebApp locally











up vote
0
down vote

favorite












I created a new react app and also a new project on Visual Studio: .NET Framework Web Application, under my Azure subscription.



What should be the process so when I run the Web Application locally, I will see the new react app and not the ASP.NET screen ?



I deployed the new react app to azure so when I run the website I do see the new react app, however when I run it from the .sln file, I get this screen:



enter image description here



Thanks in advance!










share|improve this question


























    up vote
    0
    down vote

    favorite












    I created a new react app and also a new project on Visual Studio: .NET Framework Web Application, under my Azure subscription.



    What should be the process so when I run the Web Application locally, I will see the new react app and not the ASP.NET screen ?



    I deployed the new react app to azure so when I run the website I do see the new react app, however when I run it from the .sln file, I get this screen:



    enter image description here



    Thanks in advance!










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I created a new react app and also a new project on Visual Studio: .NET Framework Web Application, under my Azure subscription.



      What should be the process so when I run the Web Application locally, I will see the new react app and not the ASP.NET screen ?



      I deployed the new react app to azure so when I run the website I do see the new react app, however when I run it from the .sln file, I get this screen:



      enter image description here



      Thanks in advance!










      share|improve this question













      I created a new react app and also a new project on Visual Studio: .NET Framework Web Application, under my Azure subscription.



      What should be the process so when I run the Web Application locally, I will see the new react app and not the ASP.NET screen ?



      I deployed the new react app to azure so when I run the website I do see the new react app, however when I run it from the .sln file, I get this screen:



      enter image description here



      Thanks in advance!







      reactjs azure web-applications deployment






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 11:31









      I.zv

      1029




      1029
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I think the step you missed is to update the Index view which is used to generate the website root to include the bootstrapping of the React app. It should be located at Views/Home/Index.cshtml or Pages/Index.cshtml, depending on the template you used when you created the project.



          As a side note, I would consider dropping the ASP.Net project entirely and just use VS Code for the React app, through there you can easily deploy your app to an Azure Storage Account using the new Static website hosting in Azure Storage, thus removing the need for an ASP.Net website.



          Hope it helps!






          share|improve this answer























          • As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
            – I.zv
            Nov 11 at 15:57












          • I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
            – Itay Podhajcer
            Nov 11 at 18:00












          • Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
            – Itay Podhajcer
            Nov 11 at 18:05










          • Well I will try this out. Toda Raba :)
            – I.zv
            Nov 11 at 21:44










          • Happy to help :)
            – Itay Podhajcer
            Nov 11 at 22:12











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248296%2frunning-react-app-through-azure-webapp-locally%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          I think the step you missed is to update the Index view which is used to generate the website root to include the bootstrapping of the React app. It should be located at Views/Home/Index.cshtml or Pages/Index.cshtml, depending on the template you used when you created the project.



          As a side note, I would consider dropping the ASP.Net project entirely and just use VS Code for the React app, through there you can easily deploy your app to an Azure Storage Account using the new Static website hosting in Azure Storage, thus removing the need for an ASP.Net website.



          Hope it helps!






          share|improve this answer























          • As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
            – I.zv
            Nov 11 at 15:57












          • I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
            – Itay Podhajcer
            Nov 11 at 18:00












          • Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
            – Itay Podhajcer
            Nov 11 at 18:05










          • Well I will try this out. Toda Raba :)
            – I.zv
            Nov 11 at 21:44










          • Happy to help :)
            – Itay Podhajcer
            Nov 11 at 22:12















          up vote
          0
          down vote













          I think the step you missed is to update the Index view which is used to generate the website root to include the bootstrapping of the React app. It should be located at Views/Home/Index.cshtml or Pages/Index.cshtml, depending on the template you used when you created the project.



          As a side note, I would consider dropping the ASP.Net project entirely and just use VS Code for the React app, through there you can easily deploy your app to an Azure Storage Account using the new Static website hosting in Azure Storage, thus removing the need for an ASP.Net website.



          Hope it helps!






          share|improve this answer























          • As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
            – I.zv
            Nov 11 at 15:57












          • I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
            – Itay Podhajcer
            Nov 11 at 18:00












          • Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
            – Itay Podhajcer
            Nov 11 at 18:05










          • Well I will try this out. Toda Raba :)
            – I.zv
            Nov 11 at 21:44










          • Happy to help :)
            – Itay Podhajcer
            Nov 11 at 22:12













          up vote
          0
          down vote










          up vote
          0
          down vote









          I think the step you missed is to update the Index view which is used to generate the website root to include the bootstrapping of the React app. It should be located at Views/Home/Index.cshtml or Pages/Index.cshtml, depending on the template you used when you created the project.



          As a side note, I would consider dropping the ASP.Net project entirely and just use VS Code for the React app, through there you can easily deploy your app to an Azure Storage Account using the new Static website hosting in Azure Storage, thus removing the need for an ASP.Net website.



          Hope it helps!






          share|improve this answer














          I think the step you missed is to update the Index view which is used to generate the website root to include the bootstrapping of the React app. It should be located at Views/Home/Index.cshtml or Pages/Index.cshtml, depending on the template you used when you created the project.



          As a side note, I would consider dropping the ASP.Net project entirely and just use VS Code for the React app, through there you can easily deploy your app to an Azure Storage Account using the new Static website hosting in Azure Storage, thus removing the need for an ASP.Net website.



          Hope it helps!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 11 at 15:02

























          answered Nov 11 at 14:52









          Itay Podhajcer

          1,117312




          1,117312












          • As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
            – I.zv
            Nov 11 at 15:57












          • I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
            – Itay Podhajcer
            Nov 11 at 18:00












          • Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
            – Itay Podhajcer
            Nov 11 at 18:05










          • Well I will try this out. Toda Raba :)
            – I.zv
            Nov 11 at 21:44










          • Happy to help :)
            – Itay Podhajcer
            Nov 11 at 22:12


















          • As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
            – I.zv
            Nov 11 at 15:57












          • I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
            – Itay Podhajcer
            Nov 11 at 18:00












          • Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
            – Itay Podhajcer
            Nov 11 at 18:05










          • Well I will try this out. Toda Raba :)
            – I.zv
            Nov 11 at 21:44










          • Happy to help :)
            – Itay Podhajcer
            Nov 11 at 22:12
















          As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
          – I.zv
          Nov 11 at 15:57






          As I need to configure my webApp to work with Azure storage table I'm afraid I will still need to use the .Net project as it will be the server or "hosting" side. Also, can you please elaborate about the first part of your answer? thanks!
          – I.zv
          Nov 11 at 15:57














          I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
          – Itay Podhajcer
          Nov 11 at 18:00






          I would still separate it to two different projects: one for the React app and one for the server side API, which in turn has access to the Azure table. Using the Azure Storage Static Website hosting will save both technical issues (due to npm compatibility issues) and cost, as downloading the API won't utilize VM resources
          – Itay Podhajcer
          Nov 11 at 18:00














          Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
          – Itay Podhajcer
          Nov 11 at 18:05




          Regarding the update required for the Index view, the most simple way for you to see how the React app needs to be integrate, will be to generate an ASP.Net Core React app (it is available on the wizard when creating a ASP.Net App)
          – Itay Podhajcer
          Nov 11 at 18:05












          Well I will try this out. Toda Raba :)
          – I.zv
          Nov 11 at 21:44




          Well I will try this out. Toda Raba :)
          – I.zv
          Nov 11 at 21:44












          Happy to help :)
          – Itay Podhajcer
          Nov 11 at 22:12




          Happy to help :)
          – Itay Podhajcer
          Nov 11 at 22:12


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248296%2frunning-react-app-through-azure-webapp-locally%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Florida Star v. B. J. F.

          Danny Elfman

          Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues