forked from ErickWendel/nodejs-webapi-no-frameworks-yt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannotations.txt
More file actions
55 lines (51 loc) · 1.06 KB
/
annotations.txt
File metadata and controls
55 lines (51 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
mkdir webapi
mkdir database
data.json
mkdir src
mkdir entities
mkdir repositories
mkdir services
mkdir factories
index.js
heroRepository
all
remove test item from data.json
heroService
all
heroFactory
all
entities/hero
all
index.js
handler
response.end('Hello')
http.createServer
routes
default
run curl localhost:3000
routes
/heroes:get
script.sh
first2
run script.sh
script.sh
wrong data
routes
/heroes:post
run script.sh
script.sh
add creating batman
run script.sh
script.sh
add requesting batman
index.js
add handleError
add /heroes:post
await Promise.reject('/heroes:post')
add /heroes:get
await Promise.reject('/heroes:post')
run script.sh
index.js
change heroes:post
add trycatch
run script