Explorar el Código

update readme to be more clear

Nhu Nguyen hace 6 años
padre
commit
b199045f10
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10
    10
      README.md

+ 10
- 10
README.md Ver fichero

@@ -15,13 +15,13 @@ I will not answer the following questions:
15 15
 If you come to me, I will show you [LMGTFY](http://lmgtfy.com/)(Let me google that for you). I will answer anything related to why your code doesn't work. I will also answer design related questions. I will also help you construct the test if you know what message you want to write.
16 16
 
17 17
 ## Text response
18
-1. Add a `http://localhost:5000/hello` path which will return `world` as a response
19
-2. Add a `http://localhost:5000/form?key=value` path which will return the value as a response. For example if I call `/form?search=blue`, the server will return `blue`. If I call `/form?color=red`, the server will return `red`. The response code should be `201`.
20
-3. Add a `http://localhost:5000/404` path which will `Are you lost?` with `404` response code.
18
+1. Add a `/hello` path so when I go to `http://localhost:5000/hello`, I will see `world` as the response
19
+2. Add a `/form?key=value` path so when I go to `http://localhost:5000/form?key=value` I will see the value as the response. For example if I call `/form?search=blue`, the server will return `blue`. If I call `/form?color=red`, the server will return `red`. The response code should be `201`.
20
+3. Add a `/404` path so when I go to `http://localhost:5000/404` I will see the `Are you lost?` message with a `404` response code.
21 21
 2. Edit the `/form?key=value` path so it will only response if it is a `POST` request. Any other type of request will a `404` response.
22 22
 
23 23
 ## Redirect
24
-1. Add a `http://localhost:5000/redirect` path which will redirect you to `http://google.com`
24
+1. Add a `/redirect`  path so when I go to `http://localhost:5000/redirect` I will be redirect to `http://google.com`
25 25
 
26 26
 ## Asynchronous requests
27 27
 Currently our server can handle one request at a time. This is called Synchronous. We want multiple users to access the server at the same time. This is called Asynchronous. Read up on the term [here](https://stackoverflow.com/questions/748175/asynchronous-vs-synchronous-execution-what-does-it-really-mean).
@@ -38,17 +38,17 @@ Currently our server can handle one request at a time. This is called Synchronou
38 38
 2. Add a new path `/files/[image_name]` (e.g. `/files/high5.gif`) will show the image
39 39
 
40 40
 ### Part 2
41
-1. Add a `http://localhost:5000/files` path. The files path will list out all the files in the `src/main/resources` folder in a list.
41
+1. Add a `/files` path. The files path will list out all the files in the `src/main/resources` folder in a list.
42 42
 2. Clicking on any of the file names will display the content of the file. If it is a picture, then show it as a picture.
43 43
 
44 44
 ## Bonus - ORM
45 45
 1. Add ORMlite with a mysql database to your dependencies
46 46
 2. Add a User class with two fields `long id` and `String name`
47
-3. Add the dao necessary to create retreive the user
47
+3. Add the dao necessary to create retrieve the user
48 48
   1. Create 3 users
49
-4. Add `http://localhost:5000/users` path to display all the users name in a list.
50
-5. Add `http://localhost:5000/users/1` to show information for the first user (their name and id)
49
+4. Add a `/users` path to display all the users name in a list.
50
+5. Add a `/users/1` to show information for the first user (their name and id)
51 51
 
52 52
 #### Super bonus
53
-1. Add `http://localhost:5000/users/new` path to show a form where user can enter a name to create a new user.
54
-2. Add `http://localhost:5000/users` with a `POST` method to accept the form information and create the user. Redirect to `/users/[user_id]`
53
+1. Add a `/users/new` path to show a form where user can enter a name to create a new user.
54
+2. Add a `/users` with a `POST` method to accept the form information and create the user. Redirect to `/users/[user_id]`