This is my first time uploading website which is having express and node as backend .However after uploading the hosted website looks broken .I am clueless. This is the github repo of the website :https://github.com/arush077/Weather-Tracker and this is the hosted website:https://arush077.github.io/Weather-Tracker/ . Is there some other way of uploading projects having node and express as backend
CodePudding user response:
I think you should host your website outside github and check that everything working or not and make sure all codes and files are uploded succefully to hosting and recheck your code by running in local host. Thank you
CodePudding user response:
You can't possibly expect your express app to start running on Github pages.
GitHub provides a static file hosting with no backend involved. You need your backend hosted in any hosting provider or in a cloud.
GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website.
I believe you can start with Heroku where you get more ideas about it.
And here is 7 different ways how you can achieve that. info