lundi 3 septembre 2018

Deploying react2015 app without index.html

I cloned a IBM Watson Speech to Text demo (https://speech-to-text-demo.ng.bluemix.net/) and made a couple changes to the files to suit the needs of my project. I essentially modified the html and css within the .jsx files and added my own custom .js files for interactivity.

Right now I am trying to deploy this project to the web so that it can be seen by anyone by just visiting the url rather than having to clone it from my github and running it locally.

I realize that I have multiple options for hosting the project, however from my research I have seen that all of them are requiring a index.html page to be specified as the root page (this is required for both github pages and AWS). I have built various static websites in the past without any frameworks and have been able to host them easily with gh-pages as they all had index.html files. However, as this current project is a clone and has been created using react, there is no index.html file to be found. All of the files responsible for the html rendering are within .jsx files.

I was hoping to receive some guidance on how to deploy my app to the web?

Thank you very much!




Aucun commentaire:

Enregistrer un commentaire