TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hosting a Javascript website on github in Seconds for free

47 点作者 sravfeyn大约 13 年前

7 条评论

catshirt大约 13 年前
this is github pages. it is neither new nor unknown. move along please.<p>first four paragraphs are a personal anecdote, and the last 2 are a regurgitation of the official github pages documentation, which the author links to.
mise大约 13 年前
Is it sustainable for GitHub to host (static) sites for free?
评论 #3648176 未加载
clarle大约 13 年前
This will effectively limit you to making requests to services that provide an API that supports JSONP. If you're going to do something like this, why not just use Heroku or something similar? Unless you're relying solely on external APIs, you're going to need some server space sooner or later.<p>Github is good for static pages, like blogs, but I don't think a web application will work that well.
评论 #3648190 未加载
zackzackzack大约 13 年前
I have a side project where I want to figure out how to host a database on github. If there was a javascript API for doing git business on github, then could just update the database to and fro. It would be messy of course but it wouldn't matter. Because you would have a dynamic app up on github for free (or 7/month if you wanted your secret sauce to stay secret).
评论 #3649516 未加载
评论 #3648595 未加载
评论 #3648819 未加载
krondor大约 13 年前
I moved my blog to it some time ago and it's been excellent so far. I do kind of think this is out of scope for GitHub, and will probably move to S3 at some point.<p>I did switch from Jekyll to Octopress though (Octopress is a nice framework around Jekyll that automates the annoying manual bits involved with Jekyll). So far it's been great though!
mise大约 13 年前
If you have written a JavaScript library and it's hosted on GitHub, I wonder if you can somehow include the `master` branch in your `gh-pages` branch as a submodule. Do you get me? If the core repo is clean JS, but where your demo site might want to include that JS, plus some extra pages.
评论 #3648186 未加载
sundar22in大约 13 年前
You cannot access any arbitary website from Javascript. <a href="http://en.wikipedia.org/wiki/Same_origin_policy" rel="nofollow">http://en.wikipedia.org/wiki/Same_origin_policy</a>
评论 #3648269 未加载
评论 #3648252 未加载