Skip to content

Commit 7e2af4d

Browse files
author
James Halliday
committed
outline for webapp talk
1 parent 7c2b5bc commit 7e2af4d

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

webapp.markdown

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# web application
2+
3+
building a web application from zero
4+
5+
* http server
6+
* static files
7+
* routing
8+
* client vs server
9+
* rendering html
10+
* database
11+
12+
---
13+
# http server
14+
15+
``` js
16+
var http = require('http')
17+
var server = http.createServer(function (req, res) {
18+
res.end('beep boop!\n')
19+
})
20+
server.listen(5000)
21+
```
22+
23+
Run this program with node:
24+
25+
```
26+
$ node server.js
27+
```
28+
29+
then in a browser open `http://localhost:5000`
30+
31+
---
32+
# static files: fs
33+
34+
using fs...
35+
36+
---
37+
# static files: ecstatic
38+
39+
using ecstatic...
40+
41+
---
42+
# routing: manually
43+
44+
doing routing manually with req.url
45+
46+
---
47+
# routing: routes
48+
49+
using the routes module
50+
51+
---
52+
# client-side, server-side
53+
54+
---
55+
# browserify
56+
57+
---
58+
# virtual-dom
59+
60+
---
61+
# database
62+
63+
---
64+
# starter projects
65+
66+
* [virtual-dom-starter](https://github.com/substack/virtual-dom-starter) - bare-bones client-side app setup using virtual dom
67+
* [virtual-dom-universal-starter](https://github.com/substack/virtual-dom-universal-starter) - browser+node (universal) virtual-dom setup with routing
68+
* [virtual-dom-unidirectional-example](https://github.com/substack/virtual-dom-unidirectional-example) - flow control example with virtual-dom
69+
* [virtual-dom-starter-babel-es6](https://github.com/substack/virtual-dom-starter-babel-es6) - bare-bones client-side app setup using virtual dom with babel for es6
70+
* [virtual-dom-starter-babel-es6-jsx](https://github.com/substack/virtual-dom-starter-babel-es6-jsx) - bare-bones client-side app setup using virtual dom with babel for es6 and jsx
71+
72+
* [react-starter](http://github.com/substack/react-starter) - bare-bones client-side app setup using react with jsx
73+
* [react-starter-es6-babel](https://github.com/substack/react-starter-es6-babel) - bare-bones client-side app setup using react with babel for es6 and jsx
74+

0 commit comments

Comments
 (0)