Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3fe68b

Browse files
authored
Added week1 homework tests and updated documentation (HackYourFuture#128)
1 parent 93fe6b0 commit d3fe68b

16 files changed

+3852
-163
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.DS_Store
2-
*/.DS_Store
2+
bin
3+
homework-solution
34
node_modules
5+
npm-debug.log
6+
yarn-error.log

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Week 1 - Homework",
11+
"program": "${workspaceFolder}/week1/homework/src/index.js",
12+
"cwd": "${workspaceFolder}/week1/homework"
13+
},
14+
{
15+
"type": "node",
16+
"request": "launch",
17+
"name": "Launch Week 1 - Homework Tests",
18+
"program": "${workspaceRoot}/week1/homework/node_modules/ava/profile.js",
19+
"args": [
20+
"--concurrency=1",
21+
"--no-color",
22+
"--serial",
23+
"${workspaceRoot}/week1/homework/test/server.test.js"
24+
],
25+
"skipFiles": [
26+
"<node_internals>/**/*.js"
27+
]
28+
},
729
{
830
"type": "node",
931
"request": "launch",

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"editor.tabSize": 2,
23
"eslint.autoFixOnSave": true,
3-
"editor.tabSize": 2
4+
"javascript.validate.enable": false,
45
}

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@ developer".
1515
| 2. | fs, process | [Week 2 Reading](week2/README.md) | [Week 2 Homework](week2/homework/README.md) |
1616
| 3. | express, REST | [Week 3 Reading](week3/README.md) | [Week 3 Homework](week3/homework/README.md) |
1717

18-
## Watch before your first Node.js session
18+
## Before your first Node.js lecture
1919

20-
Watch Jason's playlist on [Lynda.com](https://www.lynda.com/SharedPlaylist/a850f6b7bddf437f8b98679f5f9d9cc3) (45 min)
20+
Start with the Node.js tutorials for beginners [from The Net Ninja](https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp) and
21+
[from thenewboston](https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_).
2122

22-
And you can start with the [Node.js Tutorial for Beginners](https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp)
23+
Read first weeks's [README.md](week1/README.md).
2324

2425
## Promises' refresher
2526

26-
Read Jim's [summary of promises](https://github.com/remarcmij/JavaScript/blob/master/fundamentals/promises.md)
27-
from JavaScript module and [Promises, async/await](http://javascript.info/async).
27+
Reading:
28+
29+
Read Jim's summaries of [promises](https://github.com/HackYourFuture/fundamentals/blob/master/fundamentals/promises.md)
30+
and [async & await](https://github.com/HackYourFuture/fundamentals/blob/master/fundamentals/async_await.md)
31+
from JavaScript module
32+
33+
[Promises, async/await](http://javascript.info/async)
2834

2935
## Node.js Setup
3036

week1/README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ _estimated time: 10 minutes_
4242

4343
## Getting started with Node.js and npm
4444

45+
Reading:
46+
4547
[A Beginner’s Guide to npm — the Node Package Manager](https://www.sitepoint.com/beginners-guide-node-package-manager/)
48+
4649
[NPM tutorials. Follow chapters 1 - 10](https://docs.npmjs.com/getting-started/installing-node)
4750
_estimated time: 4-6 hours_
4851

@@ -54,6 +57,8 @@ _estimated time: 4-6 hours_
5457

5558
## Read-eval-print loop (REPL)
5659

60+
Documentation:
61+
5762
[REPL](https://nodejs.org/docs/latest-v8.x/api/repl.html)
5863

5964
## Setting up a Node.js project using `npm init` and `package.json`
@@ -66,22 +71,28 @@ Videos:
6671

6772
Documentation:
6873

69-
[`npm init`](https://docs.npmjs.com/cli/init)
74+
[npm init](https://docs.npmjs.com/cli/init)
7075

71-
[`package.json`](https://docs.npmjs.com/files/package.json)
76+
[package.json](https://docs.npmjs.com/files/package.json)
7277

7378
## Installing dependencies using `npm install`
7479

75-
[`npm install`](https://docs.npmjs.com/cli/install)
80+
[npm install](https://docs.npmjs.com/cli/install)
7681

7782
## Importing modules using `require`
7883

7984
Videos:
8085

81-
[Modules and `require()`](https://www.youtube.com/watch?v=xHLd36QoS4k&list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp&index=6)
86+
[Modules and require()](https://www.youtube.com/watch?v=xHLd36QoS4k&list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp&index=6)
8287

8388
[Module Patterns](https://www.youtube.com/watch?v=9UaZtgB5tQI&index=7&list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp)
8489

90+
[Modules](https://www.youtube.com/watch?v=9JhvjhZLsEw&list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_&index=8)
91+
92+
[More on Modules](https://www.youtube.com/watch?v=aNN1IKoEIdM&list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_&index=9)
93+
94+
[require Function](https://www.youtube.com/watch?v=e1Ln1FrLvh8&index=3&list=PLYxzS__5yYQmHbpKMARP04F344zYRX91I)
95+
8596
Documentation:
8697

8798
[Node.js modules](https://nodejs.org/docs/latest-v8.x/api/modules.html)
@@ -94,6 +105,10 @@ Videos:
94105

95106
[Creating a Server](https://www.youtube.com/watch?v=lm86czWdrk0&index=12&list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp)
96107

108+
[Creating a Basic Server](https://www.youtube.com/watch?v=pYOltVz7kL0&list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_&index=13)
109+
110+
[Simple Web File Server](https://www.youtube.com/watch?v=_D2w0voFlEk&list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_&index=14)
111+
97112
[Basic Routing](https://www.youtube.com/watch?v=_zvWeGwVkCY&list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp&index=19)
98113

99114
Documentation:
@@ -108,14 +123,15 @@ Documentation:
108123

109124
An important term when making applications is _control flow_. You already know
110125
all about it. Read through this page and answer this question: how do we control
111-
"flow" in JavaScript?
126+
_flow_ in JavaScript?
112127

113-
Read: [Examples of control flow in JavaScript](https://github.com/ummahusla/Codecademy-Exercise-Answers/tree/master/Language%20Skills/JavaScript/Unit%2005%20Control%20Flow/01%20More%20on%20Control%20Flow%20in%20JS)
128+
[Examples of control flow in JavaScript](https://github.com/ummahusla/Codecademy-Exercise-Answers/tree/master/Language%20Skills/JavaScript/Unit%2005%20Control%20Flow/01%20More%20on%20Control%20Flow%20in%20JS)
114129

115130
## Homework
116131

117-
Check [README.md](homework/README.md) in `homework` subdirectory.
132+
Check [README.md](homework/README.md) in `homework` subdirectory and use project
133+
in [lecture](lecture) for reference.
118134

119135
## Prepare for the next lecture
120136

121-
[Custom made playlist :boom: Lynda.com](https://www.lynda.com/SharedPlaylist/a034fd969ef945bb9ebbd9490cc75d5a)
137+
Read the [README.md](../week2/README.md) for week 2.

week1/homework/.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"node": true
55
},
66
"extends": "standard",
7+
"plugins": [
8+
"ava"
9+
],
710
"rules": {
811
"brace-style": [
912
"warn",

0 commit comments

Comments
 (0)