Skip to content

Commit

Permalink
chore: improve js-users exercise description (#40)
Browse files Browse the repository at this point in the history
* chore: reword how to access the backend

* chore: swap 2. and 3. exercise

The original 2nd referred to saving the user data, but it was the 3rd exercise to implement saving.

* chore: fix typo
  • Loading branch information
mrnagydavid authored Aug 11, 2022
1 parent ec3e50e commit 394a18d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions js-users/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

Create a front-end application, where you can handle user objects stored on a
server-based application. The server is located at https://assessment-users-backend.herokuapp.com.
It provides a REST API for the User objects on the `/users`path. (`.json` extension is required unless the `Content-Type` header is `application/json`)
It provides a REST API for the User objects on the `/users` path.
You have to either send the header `Content-Type: application/json` along with the request,
or append `.json` to the path. If you do neither, you will get HTTP Error 500.

A user object has 6 attributes:

Expand All @@ -42,22 +44,22 @@ The list should be able to **paginate on the front-end side**

### 2. exercise

Add a new action to the user list, with which you can activate/lock a user
object. A locked user should be displayed with strikethroughed attributes.
Use the update action when modifying the status field.

### 3. exercise

Append 2 new routes in your application. On the `/new` route you should be able
to create new users, on the `/edit` route the selected user’s attributes can be
modified. You should only be able to set the user’s first and last name.
Handle validation errors given back from the server, display the error message
next to the attribute’s label.

### 3. exercise

Add a new action to the user list, with which you can activate/lock a user
object. A locked user should be displayed with strikethroughed attributes.
Use the update action when modifying the status field.

### 4. exercise

Unfortunately the site’s lazy designer disappeared without finalizing his work,
so we don’t have an exact design for the user list.

Make it nice, visually pleasing. You can use external CSS libraries or
frameworks. if you have time work on the mobile version so it would be usable.
frameworks. If you have time work on the mobile version so it would be usable.

0 comments on commit 394a18d

Please sign in to comment.