File tree 17 files changed +114
-30
lines changed
17 files changed +114
-30
lines changed Original file line number Diff line number Diff line change 11
11
"program" : " ${workspaceFolder}/week1/src/index.js" ,
12
12
"cwd" : " ${workspaceFolder}/week1"
13
13
},
14
+ {
15
+ "type" : " node" ,
16
+ "request" : " launch" ,
17
+ "name" : " Launch Week 2" ,
18
+ "program" : " ${workspaceFolder}/week2/src/index.js" ,
19
+ "cwd" : " ${workspaceFolder}/week2"
20
+ },
14
21
{
15
22
"type" : " node" ,
16
23
"request" : " launch" ,
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ particular need."
10
10
2 . Previous homework
11
11
3 . Questions & Answers (Q&A)
12
12
4 . What is Node.js?
13
- 5 . Setting up a Node.js project using ` npm init `
14
- 6 . Importing modules using ` require `
15
- 5 . Building an HTTP server using built-in ` http ` module
13
+ 5 . Setting up a Node.js project using ` npm init ` and ` package.json `
14
+ 6 . Installing dependencies using ` npm install `
15
+ 7 . Importing modules using ` require `
16
+ 1 . Built-in, external modules and local files
17
+ 7 . Building an HTTP server using built-in ` http ` module
16
18
1 . HTTP methods
17
19
2 . HTTP status codes
18
- 8 . Homework
20
+ 9 . Homework
19
21
20
22
### What is Node.js?
21
23
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
# HackYourFuture Node.js - Homework week 1
2
2
3
+ # Setup
4
+
5
+ Follow the instructions in this file to set up your environment.
6
+
7
+ ## 1. Fork this repository and clone it to your hard drive
8
+
9
+ Follow the general homework instructions for this.
10
+
11
+ ## 2. Install dependencies
12
+
13
+ Change to the directory where you've cloned this repository, then
14
+ ` week1/homework ` directory and finally install dependencies using ` npm ` .
15
+
16
+ ``` bash
17
+ cd path/to/your/cloned/repo
18
+ cd week1/homework
19
+ npm install
20
+ ```
21
+
22
+ ## 3. Run the project from that directory
23
+
24
+ ``` bash
25
+ node .
26
+ ```
27
+
3
28
## Assignment
4
29
5
30
Create an HTTP server that can add and subtract from a number, which we will
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " hyf-node-week-1-homework" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " HackYourFuture Node.js Week 1 - Homework" ,
5
+ "repository" : " https://github.com/HackYourFuture/nodejs.git" ,
6
+ "main" : " src/index.js" ,
7
+ "author" : " George Sapkin" ,
8
+ "license" : " MIT" ,
9
+ "devDependencies" : {
10
+ "eslint" : " ^4.2.0" ,
11
+ "eslint-config-standard" : " ^11.0.0" ,
12
+ "eslint-plugin-import" : " ^2.7.0" ,
13
+ "eslint-plugin-node" : " ^6.0.0" ,
14
+ "eslint-plugin-promise" : " ^3.5.0" ,
15
+ "eslint-plugin-standard" : " ^3.0.1"
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ // Write the homework code in this file
Original file line number Diff line number Diff line change
1
+ {
2
+ "env": {
3
+ "es6": true,
4
+ "node": true
5
+ },
6
+ "extends": "standard",
7
+ "rules": {
8
+ "brace-style": [
9
+ "warn",
10
+ "stroustrup",
11
+ {
12
+ "allowSingleLine": true
13
+ }
14
+ ],
15
+ "curly": [
16
+ "off"
17
+ ],
18
+ "generator-star-spacing": [
19
+ "warn",
20
+ {
21
+ "after": true,
22
+ "before": false
23
+ }
24
+ ],
25
+ "key-spacing": [
26
+ "off"
27
+ ],
28
+ "max-len": [
29
+ "warn",
30
+ 80
31
+ ],
32
+ "no-multi-spaces": [
33
+ "off"
34
+ ],
35
+ "semi": [
36
+ "error",
37
+ "always"
38
+ ],
39
+ "space-before-function-paren": [
40
+ "warn",
41
+ "never"
42
+ ],
43
+ "standard/array-bracket-even-spacing": [
44
+ "off"
45
+ ],
46
+ "standard/object-curly-even-spacing": [
47
+ "off"
48
+ ],
49
+ "template-tag-spacing": [
50
+ "off"
51
+ ]
52
+ }
53
+ }
Original file line number Diff line number Diff line change
1
+ node_modules
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " hyf-node-week-1" ,
2
+ "name" : " hyf-node-week-1-lecture " ,
3
3
"version" : " 1.0.0" ,
4
- "description" : " HackYourFuture Node.js Week 1" ,
4
+ "description" : " HackYourFuture Node.js Week 1 - Lecture " ,
5
5
"repository" : " https://github.com/HackYourFuture/nodejs.git" ,
6
6
"main" : " src/index.js" ,
7
7
"author" : " George Sapkin" ,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments