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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Good JavaScript single page applications to learn from

9 点作者 backslash_16大约 10 年前
I&#x27;m trying to get better at writing and understanding single page applications and want that knowledge to be framework agnostic. I&#x27;ve found an interesting book on it but no concrete implementation [2]<p>I&#x27;ve been searching GitHub and blog posts for any open source actual single page applications (not frameworks, generators, etc..) and have come up with some good resources but nothing that exactly fits my need.<p>There is a backbone example [1] but that&#x27;s only a ToDo list. Pretty much all of the stuff I work on is more complex than that (I&#x27;m just a jr dev but the example is so contained), so these examples don&#x27;t give me a good way of checking my work and understanding.<p>I understand people use ToDo as their demo because it allows for easy cross-comparison but for digging in it really doesn&#x27;t help much. One object, tracking its few properties, and keeping a list will be maintainable and extensible just because of how small the codebase is.<p>So if anyone knows of some medium sized to large SPAs on GitHub that would be great. If there aren&#x27;t any, if anyone wants to collaborate and build one together along with a series of blog posts or text files we throw in the directories along with our reasoning I&#x27;m down.<p>[1] https:&#x2F;&#x2F;github.com&#x2F;thomasdavis&#x2F;backbonetutorials [2] http:&#x2F;&#x2F;singlepageappbook.com&#x2F;

6 条评论

Kortaggio大约 10 年前
I like the structure of the game 2048 <a href="https:&#x2F;&#x2F;github.com&#x2F;gabrielecirulli&#x2F;2048" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gabrielecirulli&#x2F;2048</a> and I think it will be highly instructive for you since it implements the MVC pattern without using a framework, and you want to be framework agnostic. 2048 is simple enough that it&#x27;s an accessible introduction to software design.<p>Daniel Janus wrote a great analysis of the source code and architecture; I highly recommend reading it: <a href="http:&#x2F;&#x2F;blog.danieljanus.pl&#x2F;blog&#x2F;2014&#x2F;04&#x2F;02&#x2F;2048&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.danieljanus.pl&#x2F;blog&#x2F;2014&#x2F;04&#x2F;02&#x2F;2048&#x2F;</a>
JohnMunsch大约 10 年前
I&#x27;m not going to hold these up as ideal examples of AngularJS apps, but you might find them interesting:<p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;JohnMunsch&#x2F;PaperQuik" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JohnMunsch&#x2F;PaperQuik</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;JohnMunsch&#x2F;ClearAndDraw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JohnMunsch&#x2F;ClearAndDraw</a><p>They&#x27;re both deployed on the web so you can play with them to see if they&#x27;re in any way interesting to you. I wrote both of them last year to play with and learn some things and then I open sourced both of them.<p>Good luck with your learning.
评论 #9506049 未加载
bkbooth大约 10 年前
I used this book <a href="http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;9781782161820.do" rel="nofollow">http:&#x2F;&#x2F;shop.oreilly.com&#x2F;product&#x2F;9781782161820.do</a> when learning AngularJS. It&#x27;s by no means perfect, but it covers doing a lot of things in Angular and building a full SPA in the process. As far as good open-source examples, I&#x27;m not sure, but I&#x27;ll be keeping an eye on this.
ianpurton大约 10 年前
Take a look at Copay. <a href="https:&#x2F;&#x2F;github.com&#x2F;bitpay&#x2F;copay" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bitpay&#x2F;copay</a> This is a AngularJS bitcoin wallet.<p>To me the real benefit of an SPA is using your web skills to build a GUI that can then run on different platforms. Take a look at ionic and some of the tutorials there.
评论 #9508000 未加载
ryan21030大约 10 年前
It may not be exactly what you want but codepen has some really cool and some really advanced JS projects:<p><a href="http:&#x2F;&#x2F;codepen.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;codepen.io&#x2F;</a>
stephenr大约 10 年前
&gt; Good single page Applications<p>I&#x27;m pretty sure that&#x27;s an oxymoron