Screen.Recording.2022-09-19.at.13.21.56.mov
This was a project I had to complete as part of the interview process for an employer; it was a take-home assignment.
- Create a React app that fetches the schedules for some workers
- The server must accept a query string parameter to sort the info by
first_name
orlast_name
- The client must render the schedules with the proper summaries for:
- Hours worked per day
- Hours worked per week for an employee
- The client must also have a
select
that permits the user to change the sorting order.
- Sinatra
- Run with
ruby shifts_server.rb
- Made with Create React App; all those notes are at the end of this README.
- The Ruby server
- has the required endpoint
- will respond with JSON sorted by
last_name
orfirst_name
- This is tested via
curl
and via any web browser pointing tolocalhost:4567/shifts?sort_by=...
- The React app
- Displays the schedules with correct hour summaries
- Lets user change sorting order
Cheers, Jona
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.