In this assignment, you have to create a react application which provides following functionalities:
- list users in a table
- search for a user
- sort columns of table
- pagination of users list
- detail page for each user on a separate route
Attention to detail and meeting all requirements is important in the project. Completing it in less time will not give you any preference.
App functions:
- Table: The main screen should list all users in the table
- columns to show:
first_name
,last_name
,age
,web
andemail
- clicking on first name should open
Details
page on a separate route - website links (
web
) should open in a new browser tab
- columns to show:
- Search: Allow to search using first_name or last_name
- Pagination: Data should be paginated
- Sort: All columns should be sortable in both ascending and descending order
- Detail: Detail page should show all fields of user
- Clicking on back navigates back to Users table page
- Routing: Table and Detail pages should be on their respective routes:
- Route for Table page should be
/users
- Route for Detail page should
/users/<id>
(e.g: /users/2, if id of user is 2)
- Route for Table page should be
https://datapeace-storage.s3-us-west-2.amazonaws.com/dummy_data/users.json
The user model has following fields:
User -
id -
first_name -
last_name -
age -
email -
web -
company_name -
city -
state -
zip;
- Use react for this assignment.
- IMPORTANT: Pagination, search and sorting should be implemented manually in the frontend only. DO NOT use 3rd party library or inbuilt feature for these.
- Data should be fetched from the api provided (and not stored in source code)
-
yarn start
(ornpm run start
if using npm) should start the app -
yarn bulid
(ornpm run build
if using npm) should build the app - repo should not contain irrelevant folders/files like node_modules, build directories etc.
- Follow the wireframes provided closely
- Follow these steps for submission:
- Fork the repository
- Create issues and work on them in their respective branches
- Complete the tasks while following all instructions
- Create MRs and merge into main branch
- When done, Test if all task requirements are met and instructions followed
- Push code to github
- Deploy and host the app using Github Pages
- Reply to the same email with the repo URL and hosted URL
- For any queries please email us at hiring@truevalueaccess.com
Wireframes for users table page (left) and user detail page (right)