- Sinatra
- Run with
ruby shifts_server.rb
- Made with Create React App; all those notes are at the end of this README.
- Everything except for the fact I could not, despite hours of troubleshooting, reading MDN, Stack Overflow, Sinatra docs, get around a
CORS
issue betweenlocalhost:4567
andlocalhost:3000
- 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=...
- To mitigate this issue, I also have sorting enabled from within React app with dummy data.
- It's up to your team to decide. Honestly, I haven't dealt with
CORS
issues at work, so although I'm familiar with the concept, it's not one I've had to troubleshoot - I worked really hard on all of this, and definitely gave it my best. I'm proud of my work and enjoyed developing this.
Thank you, very much!
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.