-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
333 lines (181 loc) · 9.78 KB
/
Copy pathindex.html
File metadata and controls
333 lines (181 loc) · 9.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>TruePattern</title>
<meta name="author" content="aras">
<meta name="description" content="node.js on Heroku In order to showcase node.js app to external world, the simplest way is to embrace heroku. Following are the simple steps to …">
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
<link href="/atom.xml" rel="alternate" title="TruePattern" type="application/atom+xml">
<link rel="canonical" href="">
<link href="/favicon.png" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30591977-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<header class="inner"><h1 class="left"><a href="/">TruePattern</a></h1>
<nav class="menu left"><ul class="main">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div class="right">
<form class="search right" action="http://google.com/search" method="get">
<input class="left" type="text" name="q" results="0">
<input type="hidden" name="q" value="site:truepattern.github.com">
</form>
<div class="social right">
<a class="github" href="https://github.com/truepattern" title="GitHub">GitHub</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
</div>
</header>
<div id="content" class="inner">
<article class="post">
<h1 class="title"><a href="/blog/2012/06/09/node-dot-js-on-heroku/">node.js on Heroku</a></h1>
<div class="entry">
<p>In order to showcase node.js app to external world, the simplest way is to embrace heroku. Following are the simple steps to deploy our <a href="http://truepattern.com/blog/2012/06/05/todo-application">Todo App</a> done before.</p>
<h2>Deploy a node.js app to heroku</h2>
<p>Refer to the following links that I found very useful</p>
<ul>
<li><a href="https://devcenter.heroku.com/articles/nodejs">heroku cedar page</a></li>
<li><a href="http://blog.superpat.com/2011/11/15/running-your-own-node-js-version-on-heroku/">running own node.js version</a></li>
</ul>
<a href="/blog/2012/06/09/node-dot-js-on-heroku/" class="more-link">Read on →</a>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-06-09T02:04:00-07:00" pubdate data-updated="true">Jun 9<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/deployment/'>deployment</a>, <a class='category' href='/blog/categories/heroku/'>heroku</a>, <a class='category' href='/blog/categories/nodejs/'>nodejs</a>, <a class='category' href='/blog/categories/todo-app/'>todo-app</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/06/09/node-dot-js-on-heroku/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/06/05/todo-application/">Todo Application</a></h1>
<div class="entry">
<h2>Lets say Hello, World to Node.js with a Todo app</h2>
<h3>Goal</h3>
<ul>
<li>To run a Todo Application that can capture Todo’s from user and save it on server (persist)</li>
</ul>
<p>The application and requirements are well known, so no need to go over what todo is. If you need pointers, please refer to <a href="http://addyosmani.github.com/todomvc/">this page</a>.</p>
<h3>Deliverables</h3>
<ul>
<li>Todo Server running on Node.js, MongoDB exposing REST API</li>
<li>Todo MVC client on Backbone.js using REST to connect with server</li>
</ul>
<a href="/blog/2012/06/05/todo-application/" class="more-link">Read on →</a>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-06-05T01:01:00-07:00" pubdate data-updated="true">Jun 5<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/rest/'>REST</a>, <a class='category' href='/blog/categories/nodejs/'>nodejs</a>, <a class='category' href='/blog/categories/server/'>server</a>, <a class='category' href='/blog/categories/todo-app/'>todo-app</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/06/05/todo-application/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/22/css-references/">CSS References</a></h1>
<div class="entry">
<p>Following is my shortlisted references to CSS layouts to use for new projects.</p>
<ul>
<li><a href="http://semantic.gs/">semantic.gs</a></li>
<li><a href="http://adapt.960.gs/">960.gs</a></li>
<li><a href="http://twitter.github.com/bootstrap/">bootstrap css from twitter</a></li>
</ul>
<p>A blog listing the top css layouts for responsive web:</p>
<ul>
<li><a href="http://idesignow.com/css/7-css-grid-layout-frameworks-for-responsive-web-design.html">7-css-grid-layout for responsive design</a></li>
</ul>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-22T01:45:00-07:00" pubdate data-updated="true">Apr 22<span>nd</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/bootstrap/'>bootstrap</a>, <a class='category' href='/blog/categories/css/'>css</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/22/css-references/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/21/setting-up-truepattern-dot-github-dot-com/">Setting Up This Blog</a></h1>
<div class="entry">
<h2>Install octopress</h2>
<ol>
<li>Please follow the instructions as documented <a href="http://octopress.org/docs/deploying/github">here</a>.</li>
<li>execute the following commands</li>
</ol>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ rake setup_github_pages
</span><span class='line'>Enter the read/write url for your repository: git@github.com:<your-id>/<git-path></span></code></pre></td></tr></table></div></figure>
<ul>
<li>Also you can find very good documentation <a href="http://code.dblock.org/octopress-setting-up-a-blog-and-contributing-to-an-existing-one">here</a></li>
</ul>
<h2>Adding new entry</h2>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>rake new_post["Post Title"]</span></code></pre></td></tr></table></div></figure>
<h2>Checkin the sources</h2>
<p>BTW, dont forget to add the sources to a separate branch ‘sources’</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>git add .
</span><span class='line'>git commit -m 'blog sources'
</span><span class='line'>git push origin source</span></code></pre></td></tr></table></div></figure>
<h2>Updating blog</h2>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>rake generate
</span><span class='line'>rake preview
</span><span class='line'>rake deploy</span></code></pre></td></tr></table></div></figure>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-21T18:20:00-07:00" pubdate data-updated="true">Apr 21<span>st</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/blog/'>blog</a>, <a class='category' href='/blog/categories/octopress/'>octopress</a>, <a class='category' href='/blog/categories/setup/'>setup</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/21/setting-up-truepattern-dot-github-dot-com/#disqus_thread">Comments</a></span>
</div>
</article>
<nav id="pagenavi">
<a href="/blog/archives" class="center">Blog Archives</a>
</nav></div>
<footer class="inner">Copyright © 2012 TruePattern</footer>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script src="/javascripts/slash.js"></script>
<script type="text/javascript">
var disqus_shortname = 'truepattern';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
</body>
</html>