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

Skip to content

Commit eb93e2c

Browse files
added weeek 3 md
1 parent d926d11 commit eb93e2c

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

week3/README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Node JS Class
22

3-
## Homework Week 3
43

5-
### Create Node JS server that:
4+
### Todays' Meal
5+
6+
1. Recap last Week
7+
2. Homework
8+
3. Q&A
9+
4. Other topics
10+
5. Typescript vs ES6, transpiling javascript
11+
7. Testing with Postman
12+
8. MVC model
13+
9. Express vs native http library
14+
6. Building a REST web API for Todos
15+
16+
### Assignment for this weak:
17+
Create Node JS server that
618

719
- Listens on port 8080
820

@@ -15,17 +27,17 @@
1527
- remove a todo and return the new list
1628
- DELETE /todos/
1729
- clear all the todos from the list
18-
19-
All responses should be in JSON. There is a commented out example in my index.js
2030

21-
### Notes
31+
Some other notes:
32+
- All responses should be in JSON.
33+
- Try to apply the MVC model to your file structure. It will save you time in following assignments!
34+
- Test your API using Postman.
35+
- There is a commented out example in my index.js
2236

23-
A front-end html page that makes the correct calls and displays the results is supplied.
2437

25-
Don't edit the html page. If you find en error in the page please let me know straight away so I can fix it for everyone.
2638

27-
I have supplied a skeleton index.js that serves the home page at http://localhost:8080/. You can build on it or create your own.
39+
### Notes
2840

29-
Retrieving the body of a POST is not obvious. Please read the documentation here: https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/ and remember to think async.
41+
We have supplied a skeleton index.js that serves the home page at http://localhost:8080/. You can build on it or create your own.
3042

31-
Please excuse the ugliness of my html! I will try to pretty it up later but I will not change any logic.
43+
Retrieving the body of a POST is not obvious. Please read [the documentation here](https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/) and remember to think async.

0 commit comments

Comments
 (0)