|
1 | | -# HackYourFuture Node.js - Reading material week 2 |
2 | | - |
3 | | -## Last weeks Summary |
4 | | - |
5 | | -Last week we looked at building an HTTP interface. The interface allowed us to |
6 | | -get a state, and manipulate the state (add, subtract, reset). |
| 1 | +# HackYourFuture Node.js Week 2 |
7 | 2 |
|
8 | 3 | ## Agenda |
9 | 4 |
|
10 | 5 | 1. Recap last week |
11 | 6 | 2. Previous homework |
12 | 7 | 3. Questions & answers (Q&A) |
13 | 8 | 4. Persisting data beyond the lifetime of the app |
| 9 | + 1. Accessing file system using build-in `fs` module |
| 10 | + 2. Example |
14 | 11 | 5. Building a command line interface (CLI) |
15 | | -6. Accessing file system with Node.js `fs` module |
16 | | -7. CRUD operations, create, read, update and delete |
17 | | -8. Homework |
| 12 | + 1. Accessing command line arguments using `process.argv` |
| 13 | + 2. Example |
| 14 | +6. CRUD operations, create, read, update and delete |
| 15 | +7. Homework |
18 | 16 |
|
19 | | -## Reading material |
| 17 | +## Last week's summary |
20 | 18 |
|
21 | | -### Node.js process |
| 19 | +Last week we looked at building an HTTP server. That server allowed us to get a |
| 20 | +state and manipulate it (add, subtract, reset). |
22 | 21 |
|
23 | | -You don't have to remember everything in this video, just a nice outline |
24 | | -[Egghead video tutorial](https://egghead.io/lessons/node-js-the-node-js-process-object) |
25 | | -Only read the part about "process.argv" |
26 | | -[Node.JS docs - process.argv](https://nodejs.org/docs/latest/api/process.html#process_process_argv) |
| 22 | +## Reading material |
27 | 23 |
|
28 | 24 | ### Node.js file system module `fs` |
29 | 25 |
|
30 | 26 | [Main documentation](https://nodejs.org/docs/latest-v8.x/api/fs.html) |
31 | 27 |
|
32 | 28 | [fs.readFile()](https://nodejs.org/docs/latest-v8.x/api/fs.html#fs_fs_readfile_path_options_callback) |
| 29 | + |
33 | 30 | [fs.appendFile()](https://nodejs.org/docs/latest-v8.x/api/fs.html#fs_fs_appendfile_file_data_options_callback) |
34 | 31 |
|
| 32 | +### Building a command line interface (CLI) |
| 33 | + |
| 34 | +[Understand the Node.js process object](https://egghead.io/lessons/node-js-understand-the-node-js-process-object) |
| 35 | +You don't have to remember everything in this video, it's just a nice outline. |
| 36 | + |
| 37 | +[Node.js Process Documentation](https://nodejs.org/docs/latest-v8.x/api/process.html) |
| 38 | + |
| 39 | +[process.argv](https://nodejs.org/docs/latest-v8.x/api/process.html#process_process_argv) |
| 40 | + |
| 41 | +### CRUD |
| 42 | + |
| 43 | +[CRUD](https://en.wikipedia.org/wiki/Create%2C_read%2C_update_and_delete) |
| 44 | + |
35 | 45 | ### Node Fundamentals |
36 | 46 |
|
37 | | -Read parts: |
38 | | -- 3.1, 3.2 |
39 | | -- 4.1, 4.3 |
40 | | -[Airpair tutorial](https://www.airpair.com/javascript/node-js-tutorial#3-node-fundamentals) |
| 47 | +Read parts 3.1, 3.2, 4.1, 4.3 of [Airpair tutorial](https://www.airpair.com/javascript/node-js-tutorial#3-node-fundamentals) |
| 48 | + |
| 49 | +## Homework |
| 50 | + |
| 51 | +Check [README.md](homework/README.md) in `homework` subdirectory. |
41 | 52 |
|
42 | 53 | ## Prepare for the next lecture |
43 | 54 |
|
|
0 commit comments