none
Is Web-Server Required for JavaScript API for Excel? RRS feed

  • Question

  • Hi

    Is a Web-Server Required to host JavaScript for Excel on Mac?

    Or, can i write Excel Mac javascript that runs on local machine, without a web-server?

    thx

    Wednesday, March 8, 2017 9:35 PM

All replies

  • Hi johny,

    No, Web-Server is not required. But you need to host web application on Mac.

    There are two parts in Excel Addin( Javascript API for Excel), manifest and web application. You could host web application on server or on your local machine.

    For developing and deploy web application on Mac, I suggest you refer below link.

    # Develop and Deploy ASP.NET 5 Apps on Mac OS X

    https://blog.tonysneed.com/2015/05/25/develop-and-deploy-asp-net-5-apps-on-mac-os-x/

    Best Regards,

    Edward

    Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 9, 2017 4:57 AM
  • Thx for reply, Edward. Sounds like i can run a web server on Mac.

    But the article you linked is a little hard for me to decipher, because it's based on ASP.NET C# development, so it contains a lot of stuff that would not apply to JS/Excel dev.

    Maybe i can find a simpler example. 

    • Edited by johny w Thursday, March 9, 2017 9:18 PM
    Thursday, March 9, 2017 7:43 PM
  • For this link, I suggest you focus on how to host web application on Mac. If you know how to do it, just ignore this link.

    As my first reply, there are two parts in Excel Add-in, manifest and web application which is developed by excel.js. For developing on mac, I suggest you refer the link below:

    #Visual Studio Code for Mac developers: Office add-ins

    https://blogs.msdn.microsoft.com/cdndevs/2015/11/30/visual-studio-code-for-mac-developers-office-add-ins/

    Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 10, 2017 7:13 AM
  • "No, Web-Server is not required. But you need to host web application on Mac."

    [jw] I think that's 1/2 correct. I think it's:

    You DO need a web-server, and it can be a local-machine web-server, which hosts your web application. 

    "There are two parts in Excel Addin... Develop and Deploy ASP.NET 5 ...Apps ...tony sneed." 

    [jw] All awesome stuff! Also, IMO, not part of the answer to the question. 

    Thx


    • Edited by johny w Friday, March 10, 2017 8:17 AM
    Friday, March 10, 2017 8:16 AM
  • >>You DO need a web-server, and it can be a local-machine web-server, which hosts your web application. 

    It seems you have got the answer for your original issue. I am not familiar with Mac, sorry for the unrelated suggestion.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Friday, March 10, 2017 8:27 AM