We would like you to create a simple react app that allows a doctor to visualise and a monitor patient's heart rate. This app should take data from an existing backend (provided in the repo), and display it to the doctor in a meaningful way.
- You'll need
nodejs
installed - Clone this repo
npm install
- Run the server with
node app.js
You'll see the heart rate data atlocalhost:3000/heartrate
- Create a new React app in your repo
- Fetch data from the endpoint
localhost:3000/heartrate
- Visualise the data in your React app! This should meet the following criteria, but the way you do this is up to you..
- It should have a chart
- You should be able to update the chart by filtering in a useful way(s)
- The data should also be shown in a table or a list
- When finished, please email your code back to us (don't fork the repo, as then others will be able to see your solution).
- The app fetches data from our API and displays it in the UI
- The app is built with React. Beyond this, feel free to use any libraries, frameworks or tools that you like.
- Your app is easy to install and run locally
- It's beautiful and looks great at all screen sizes.
These aren't required for this challenge, just some ideas for nice-to-haves :).
- Add unit tests and/or snapshot tests
- Add flow for static typechecking
- Dockerize the app
- Deploy the app somewhere
- Show an offline message if you lose browser connectivity