GitHub pages host only static HTML pages. No server side technology is supported, so Node.js applications won't run on GitHub pages. There are lots of hosting providers, as listed on the Node.js wiki.
If you want to host static pages on GitHub, then read this guide. If you plan on using Jekyll, then this guide will be very helpful.
Answer from Akshat Jiwan Sharma on Stack OverflowGitHub pages host only static HTML pages. No server side technology is supported, so Node.js applications won't run on GitHub pages. There are lots of hosting providers, as listed on the Node.js wiki.
If you want to host static pages on GitHub, then read this guide. If you plan on using Jekyll, then this guide will be very helpful.
We, the Javascript lovers, don't have to use Ruby (Jekyll or Octopress) to generate static pages in Github pages, we can use Node.js and Harp.js, for example:
These are the steps. Abstract:
Create a New Repository
Clone the Repository
git clone https://github.com/your-github-user-name/your-github-user-name.github.io.gitInitialize a Harp app (locally):
harp init _harp
make sure to name the folder with an underscore at the beginning; when you deploy to GitHub Pages, you don’t want your source files to be served.
Compile your Harp app
harp compile _harp ./Deploy to Gihub
git add -A git commit -a -m "First Harp + Pages commit" git push origin master
And this is a cool tutorial with details about nice stuff like layouts, partials, Jade and Less.
Does GitHub Pages support Node.js
is it possible to launch my node.js server as a gh pages?
Can I host NodeJS webpage on GitHub?
Node.js + github pages - Stack Overflow
Videos
» npm install node-github-pages
Hey, I'm a beginner to web development. Learnt very basic HTML and CSS. And checking out some projects but they're mostly written in NoddJS. I'm not really sure how it works but is it possible to host NodeJS project on GitHub? It doesn't have any index.html filefile. I have hosted a few normal html, CSS and js pages using GitHub pages but not sure how to do the same for a simple NodeJS webpage.
» npm install gh-pages