Skip to content

Commit 7d575e8

Browse files
committed
Removed outline from readme
1 parent 59c56bf commit 7d575e8

1 file changed

Lines changed: 2 additions & 102 deletions

File tree

readme.md

Lines changed: 2 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,3 @@
1-
# Introduction
2-
- What makes node possible. (v8, libuv)
3-
- Why use node?
4-
- When you shouldn't use node.
5-
- The REPL
6-
- Show off the process global object
7-
- usefulness of the underscore
8-
- Running scripts with node
9-
- Example of evented model
10-
- Compare to how other languages might handle waiting on a response from the network or db. Highlight that node is idle while waiting for callback and frees up other event handlers to do work.
11-
- The program exits when no more callbacks!
12-
- Simple webserver
13-
- Hello world
14-
- Connection: keep-alive
15-
- Transfer-Encoding: chunked -> Allows for streaming (Show an example of how the streaming is possible in the request handler)
16-
- Show apache bench with -n 100 -c 100 to simulate 100 concurrent connections (show off the time it took)
17-
- *Interactive Demo* create a simple chat server encourage others to connect
1+
# NodeLabs
182

19-
#Modules
20-
- Modules should comply with CommonJS
21-
- require() wraps in a closure that has access to module.export
22-
23-
```JavaScript
24-
var module = { exports: { } };
25-
26-
(function (module, exports) {
27-
28-
//Your module code here
29-
30-
})(module, module.exports);
31-
32-
```
33-
34-
- Module cache - Modules are cached by the resolved file name. Modules are only executed once so as long as the resolved filename is the same the exact same object will be returned. For example, a module loading another module in the node_modules directory will return a different object.
35-
36-
#NPM
37-
- Define package managers compare to other platforms
38-
- Before Node.JS there was... nothing.
39-
- Deploys with Node.js
40-
- Not limited to JavaScript packages. Can build and deploy binaries.
41-
- packages.json
42-
- local vs global node modules
43-
- Build something and publish with NPM?
44-
- How NPM handles different versions of the same
45-
- The star for the most recent version
46-
- The tilde for versions to help resolve dependencies using symver
47-
- Useful NPM commands besides install
48-
- init
49-
- docs
50-
- link
51-
- search
52-
- test
53-
54-
#Node Core
55-
- Event Emitters
56-
- Buffer
57-
- Stored outside of v8 memory.
58-
- Used in streams
59-
- Streams
60-
- Show an example of issuing an http request and putting the response into a data variable. Describe how this is often a misuse of streams because it's buffering data in memory instead of piping it along.
61-
- Show an example of piping data from an input stream to an output.
62-
- Streams are EventEmitters with specific events (Readable: data, end, error, close Writeable: drain, error, close, pipe)
63-
- File System
64-
- Child Process
65-
- Domains?
66-
67-
#Express App
68-
- What do they need to know before touching an express app?
69-
- Modules
70-
- Localhost serve static page
71-
- Show query parameter in output
72-
- POST a form
73-
74-
#WebSockets
75-
76-
#Debugging
77-
78-
#Testing
79-
80-
#Real Time Projects with Node (Volunteer speakers)
81-
82-
#Lab Ideas
83-
- Create a http proxy server
84-
- Using http module
85-
- streams
86-
- url parsing
87-
- Create a shell
88-
- Streams
89-
- Event Emitters
90-
- File System
91-
- Process global
92-
- Create an express app
93-
- Streams
94-
- Http module
95-
- File system
96-
- Process global
97-
- Event Emitters
98-
- MongoDB / Couch database
99-
- Native modules
100-
- Data Access
101-
- Web based REPL
102-
- Websockets
103-
- All other core stuff
3+
NodeLabs is an effort to provide opensource teaching materials for Node.js.

0 commit comments

Comments
 (0)