Skip to content

Commit b8d7d8c

Browse files
committed
chore
1 parent ff8d6fd commit b8d7d8c

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
##Todo
55

6-
create a basic web server with expressthat can handle a GET request for whatever resource you'd like and whatever url you want. Navigate to that url in the browser and see if yuor resource is there. The solution is on the `step-1-fix` branch
6+
create a basic server with express
7+
that will send back the index.html file on a GET request to '/'
8+
it should then send back jsonData on a GET to /data

Diff for: index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>hey</title>
6+
</head>
7+
<body>
8+
<h1>hey</h1>
9+
</body>
10+
</html>

Diff for: server.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// TODO: create a basic server with express
2-
// that can handle a GET request for what ever resource you'd like
3-
// whatever url you want, and then navigate to that url in the browser and
4-
// see if yuor resource is there.
2+
// that will send back the index.html file on a GET request to '/'
3+
// it should then send back jsonData on a GET to /data
4+
5+
var jsonData = {count: 12, message: 'hey'};

0 commit comments

Comments
 (0)