Skip to content
This repository
Newer
Older
100644 196 lines (172 sloc) 8.827 kb
93188918 » isaacs
2011-12-12 Website js/css tweaks
1 <!doctype html>
ef659192 » shancat
2011-12-20 docs: use "Level 1" HTML5 features
2 <html lang="en">
565becb8 » Urban Hafner
2009-06-05 XHTML compliant HTML and a few spelling fixes
3 <head>
ef659192 » shancat
2011-12-20 docs: use "Level 1" HTML5 features
4 <meta charset="utf-8">
93188918 » isaacs
2011-12-12 Website js/css tweaks
5 <link type="image/x-icon" rel="icon" href="favicon.ico">
6 <link type="image/x-icon" rel="shortcut icon" href="favicon.ico">
ef659192 » shancat
2011-12-20 docs: use "Level 1" HTML5 features
7 <link rel="stylesheet" href="pipe.css">
8 <link rel="stylesheet" href="sh_vim-dark.css">
c02db322 » ry
2011-03-17 Link to Node blog
9 <link rel="alternate"
10 type="application/rss+xml"
c8f5bf88 » ry
2011-03-18 Use feedburner instead of wordpress
11 title="node blog"
93188918 » isaacs
2011-12-12 Website js/css tweaks
12 href="http://feeds.feedburner.com/nodejs/123123123">
565becb8 » Urban Hafner
2009-06-05 XHTML compliant HTML and a few spelling fixes
13 <title>node.js</title>
14 </head>
6768d2fc » isaacs
2012-01-23 doc: Pixel-nudging
15 <body id="front">
5bbb4cad » ry
2011-12-11 new website
16 <div id="intro">
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
17 <img id="logo" src="http://nodejs.org/images/logo.png" alt="node.js">
565becb8 » Urban Hafner
2009-06-05 XHTML compliant HTML and a few spelling fixes
18
5bbb4cad » ry
2011-12-11 new website
19 <p>Node.js is a platform built on <a
20 href="http://code.google.com/p/v8/">Chrome's JavaScript runtime</a>
21 for easily building fast, scalable network applications. Node.js
22 uses an event-driven, non-blocking I/O model that makes it
23 lightweight and efficient, perfect for data-intensive real-time
24 applications that run across distributed devices.</p>
565becb8 » Urban Hafner
2009-06-05 XHTML compliant HTML and a few spelling fixes
25
e35cec5c » isaacs
2012-09-11 doc: Put current version on homepage
26 <p>Current Version: __VERSION__</p>
27
060141c5 » isaacs
2012-08-16 website: Improved install button behavior
28 <div class=buttons>
29 <a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.tar.gz" class="button downloadbutton" id="downloadbutton">INSTALL</a>
30
31 <a href="download/" class=button id="all-dl-options">Downloads</a
32 ><a href="api/" class="button" id="docsbutton">API Docs</a>
33 </div>
76de7c0c » isaacs
2012-04-27 Add customary 'fork me on github' banner to website
34
6e0b8b16 » isaacs
2012-09-11 doc: Fork me image should be full url
35 <a href="http://github.com/joyent/node"><img class="forkme" src="http://nodejs.org/images/forkme.png" alt="Fork me on GitHub"></a>
5bbb4cad » ry
2011-12-11 new website
36 </div>
060141c5 » isaacs
2012-08-16 website: Improved install button behavior
37
5bbb4cad » ry
2011-12-11 new website
38 <div id="quotes" class="clearfix">
39 <h2>Node.js in the Industry</h2>
40 <ul>
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
41 <li class="microsoft"><img src="http://nodejs.org/images/microsoft-logo.png">
5bbb4cad » ry
2011-12-11 new website
42 <p>Node gives Azure users the first end-to-end JavaScript
43 experience for the development of a whole new class of real-time
44 applications.
93188918 » isaacs
2011-12-12 Website js/css tweaks
45 <br>
1747eeff » isaacs
2012-06-28 homepage: Update Claudio's title/link
46 <a href="https://www.windowsazure.com/en-us/develop/nodejs">Claudio Caldato</a>
93188918 » isaacs
2011-12-12 Website js/css tweaks
47 <br>
1747eeff » isaacs
2012-06-28 homepage: Update Claudio's title/link
48 <span>Principal Program Manager, Microsoft Open Technologies, Inc.</span></p>
49 </li>
5bbb4cad » ry
2011-12-11 new website
50
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
51 <li class="ebay"><img src="http://nodejs.org/images/ebay-logo.png">
5bbb4cad » ry
2011-12-11 new website
52 <p>Node’s evented I/O model freed us from worrying about locking
53 and concurrency issues that are common with multithreaded async
54 I/O.
93188918 » isaacs
2011-12-12 Website js/css tweaks
55 <br>
5bbb4cad » ry
2011-12-11 new website
56 <a href="http://www.ebaytechblog.com/2011/11/30/announcing-ql-io/">Subbu Allamarju</a>
93188918 » isaacs
2011-12-12 Website js/css tweaks
57 <br>
5bbb4cad » ry
2011-12-11 new website
58 <span>Principal Member, Technical Staff</span></p></li>
59
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
60 <li class="linkedin"><img src="http://nodejs.org/images/linkedin-logo.png">
5bbb4cad » ry
2011-12-11 new website
61 <p>On the server side, our entire mobile software stack is
62 completely built in Node. One reason was scale. The second is
63 Node showed us huge performance gains.
93188918 » isaacs
2011-12-12 Website js/css tweaks
64 <br>
5bbb4cad » ry
2011-12-11 new website
65 <a href="http://venturebeat.com/2011/08/16/linkedin-node/">Kiran Prasad</a>
93188918 » isaacs
2011-12-12 Website js/css tweaks
66 <br>
5bbb4cad » ry
2011-12-11 new website
67 <span>Director of Engineering, Mobile</span></p></li>
68
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
69 <li class="yahoo"><img src="http://nodejs.org/images/yahoo-logo.png">
5bbb4cad » ry
2011-12-11 new website
70 <p>Node.js is the execution core of Manhattan. Allowing
71 developers to build one code base using one language – that is
72 the nirvana for developers.
93188918 » isaacs
2011-12-12 Website js/css tweaks
73 <br>
5bbb4cad » ry
2011-12-11 new website
74 <a href="http://developer.yahoo.com/blogs/ydn/posts/2011/11/yahoo-announces-cocktails-%E2%80%93-shaken-not-stirred/">Renaud Waldura</a>
93188918 » isaacs
2011-12-12 Website js/css tweaks
75 <br>
5bbb4cad » ry
2011-12-11 new website
76 <span>Sr. Product Manger, Cocktail</span></p></li>
77 </ul>
78 </div>
93188918 » isaacs
2011-12-12 Website js/css tweaks
79
5bbb4cad » ry
2011-12-11 new website
80 <div id="content" class="clearfix">
81 <div id="column1">
82 <h2>An example: Webserver</h2>
83 <p>This simple web server written in Node responds with "Hello World" for every request.</p>
84 <pre>
ba792ea2 » ry
2010-06-23 :%s/sys.puts/console.log/g
85 var http = require('http');
335d9af7 » ry
2009-10-09 Update docs to use sys.js and not so much mixin().
86 http.createServer(function (req, res) {
cbd1f148 » mranney
2010-06-10 Remove setTimeout from initial example and description.
87 res.writeHead(200, {'Content-Type': 'text/plain'});
88 res.end('Hello World\n');
c1f47401 » pvorb
2012-02-18 docs: fix quotation style in the webserver example
89 }).listen(1337, '127.0.0.1');
5bbb4cad » ry
2011-12-11 new website
90 console.log('Server running at http://127.0.0.1:1337/');</pre>
116f4dea » ry
2009-08-26 lint
91
5bbb4cad » ry
2011-12-11 new website
92 <p>To run the server, put the code into a file <code>example.js</code> and execute it with the <code>node</code> program:</p>
93 <pre class="sh_none">
5f82c4ba » ry
2009-10-16 Improve webpage
94 % node example.js
3ce5e6fe » ry
2011-04-22 Use better ports on the home page
95 Server running at http://127.0.0.1:1337/</pre>
116f4dea » ry
2009-08-26 lint
96
5bbb4cad » ry
2011-12-11 new website
97 <p>Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it:</p>
5f82c4ba » ry
2009-10-16 Improve webpage
98
5bbb4cad » ry
2011-12-11 new website
99 <pre>
cec775a0 » mranney
2010-06-08 Web site example fixes.
100 var net = require('net');
0248c87e » ry
2011-02-23 improve hello-world example on website
101
102 var server = net.createServer(function (socket) {
c1f47401 » pvorb
2012-02-18 docs: fix quotation style in the webserver example
103 socket.write('Echo server\r\n');
0248c87e » ry
2011-02-23 improve hello-world example on website
104 socket.pipe(socket);
3ce5e6fe » ry
2011-04-22 Use better ports on the home page
105 });
0248c87e » ry
2011-02-23 improve hello-world example on website
106
c1f47401 » pvorb
2012-02-18 docs: fix quotation style in the webserver example
107 server.listen(1337, '127.0.0.1');</pre>
5bbb4cad » ry
2011-12-11 new website
108
109 <!-- <p>Ready to dig in? <a href="">Download the latest version</a> of node.js or learn how other organizations are <a href="">using the technology</a>.</p> -->
110 </div>
111 <div id="column2">
112 <h2>Featured</h2>
4051c284 » isaacs
2012-02-13 docs: Move images out of the dist tarball
113 <a href="http://www.youtube.com/watch?v=jo_B4LTHi3I"><img src="http://nodejs.org/images/ryan-speaker.jpg"></a>
5bbb4cad » ry
2011-12-11 new website
114 A guided introduction to Node
115
116 <h2>Explore Node.js</h2>
117 <ul id="explore">
19a18add » ry
2011-12-12 better <br>s
118 <li><a href="about/" class="explore">About</a><br><span>Technical overview</span></li>
119 <li><a href="http://search.npmjs.org/" class="explore">npm Registry</a><br><span>Modules, resources and more</span></li>
d497bf84 » isaacs
2012-03-16 doc: Remove extraneous index.html's from hyperlinks
120 <li><a href="http://nodejs.org/api/" class="explore">Documentation</a><br><span>API Specifications</span></li>
19a18add » ry
2011-12-12 better <br>s
121 <li><a href="http://blog.nodejs.org" class="explore">Node.js Blog</a><br><span>Insight, perspective and events</span></li>
122 <li><a href="community/" class="explore">Community</a><br><span>Mailing lists, blogs, and more</span></li>
123 <li><a href="logos/" class="explore">Logos</a><br><span>Logo and desktop background</span></li>
6e76fc28 » ry
2011-12-12 make jobs the last nav
124 <li><a href="http://jobs.nodejs.org/" class="explore">Jobs</a><br><ol class="jobs"><!-- JOBS --><!-- JOBS --></ol></li>
5bbb4cad » ry
2011-12-11 new website
125 </ul>
565becb8 » Urban Hafner
2009-06-05 XHTML compliant HTML and a few spelling fixes
126 </div>
5bbb4cad » ry
2011-12-11 new website
127 </div>
93188918 » isaacs
2011-12-12 Website js/css tweaks
128
5bbb4cad » ry
2011-12-11 new website
129 <div id="footer">
831c8199 » Matthew Fitzsimmons
2012-01-21 Nodejs.org design refresh.
130 <ul class="clearfix">
131 <li><a href="/">Node.js</a></li>
15c6c0ee » goloroden
2012-08-13 website: download page
132 <li><a href="/download/">Download</a></li>
831c8199 » Matthew Fitzsimmons
2012-01-21 Nodejs.org design refresh.
133 <li><a href="/about/">About</a></li>
134 <li><a href="http://search.npmjs.org/">npm Registry</a></li>
d497bf84 » isaacs
2012-03-16 doc: Remove extraneous index.html's from hyperlinks
135 <li><a href="http://nodejs.org/api/">Docs</a></li>
831c8199 » Matthew Fitzsimmons
2012-01-21 Nodejs.org design refresh.
136 <li><a href="http://blog.nodejs.org">Blog</a></li>
137 <li><a href="/community/">Community</a></li>
138 <li><a href="/logos/">Logos</a></li>
139 <li><a href="http://jobs.nodejs.org/">Jobs</a></li>
6768d2fc » isaacs
2012-01-23 doc: Pixel-nudging
140 <!-- <li><a hrfe="http://twitter.com/nodejs" class="twitter">@nodejs</a></li> -->
831c8199 » Matthew Fitzsimmons
2012-01-21 Nodejs.org design refresh.
141 </ul>
142
839bf025 » mathiasbynens
2012-06-23 docs: Switch to the asynchronous Google Analytics snippet
143 <p>Copyright <a href="http://joyent.com/">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
09229820 » ry
2010-11-30 Add promotejs
144 </div>
4b4d4afa » ry
2010-11-09 joyent-ize website
145
831c8199 » Matthew Fitzsimmons
2012-01-21 Nodejs.org design refresh.
146
ef659192 » shancat
2011-12-20 docs: use "Level 1" HTML5 features
147 <script src="sh_main.js"></script>
148 <script src="sh_javascript.min.js"></script>
149 <script>highlight(undefined, undefined, 'pre');</script>
5bbb4cad » ry
2011-12-11 new website
150
ef659192 » shancat
2011-12-20 docs: use "Level 1" HTML5 features
151 <script>
839bf025 » mathiasbynens
2012-06-23 docs: Switch to the asynchronous Google Analytics snippet
152 window._gaq = [['_setAccount', 'UA-10874194-2'], ['_trackPageview']];
153 (function(d, t) {
154 var g = d.createElement(t),
155 s = d.getElementsByTagName(t)[0];
156 g.src = '//www.google-analytics.com/ga.js';
157 s.parentNode.insertBefore(g, s);
158 }(document, 'script'));
1597ce0e » isaacs
2012-08-22 website: Fix download link on win, un-break industry section
159 ;(function(d,n) {
160 var os = n.platform.match(/(Win|Mac|Linux)/);
161 var x = n.userAgent.match(/x86_64|Win64|WOW64/) ||
162 n.cpuClass === 'x64' ? 'x64' : 'x86';
163 var base = 'http://nodejs.org/dist/__VERSION__/';
164 var href = 'node-__VERSION__.tar.gz';
165 var db = d.getElementById('downloadbutton');
166 var d2;
167 switch (os && os[1]) {
168 case 'Mac':
169 href = 'node-__VERSION__.pkg';
170 break;
171 case 'Win':
172 href = 'node-__VERSION__-' + x + '.msi';
173 if (x === 'x64') href = 'x64/' + href;
174 break;
175
176 // TODO uncomment when we have these
177 // case 'Linux':
178 // // two buttons: .deb and .rpm
179 // href = 'node-__VERSION__-' + x + '.rpm';
180 // var d2 = document.createElement('a');
181 // d2.href = base + 'node-__VERSION__-' + x + '.deb';
182 // d2.className = 'button downloadbutton';
183 // d2.innerHTML = 'INSTALL .deb';
184 // db.innerHTML = 'INSTALL .rpm';
185 // db.parentNode.insertBefore(d2, db);
186 // break;
187 }
188
189 db.href = base + href;
190 // if there's one download option, then download it at #download
191 if (location.hash === '#download' && !d2)
192 location.replace(b.href);
193 })(document,navigator);
93188918 » isaacs
2011-12-12 Website js/css tweaks
194 </script>
1597ce0e » isaacs
2012-08-22 website: Fix download link on win, un-break industry section
195 </body>
b34792a4 » ry
2009-05-13 Add webpage. Very incomplete.
196 </html>
Something went wrong with that request. Please try again.