Your goal is to build a web application that displays the latest "heartbeat" from a number of sensors.
Your task is to accomplish the following:
- Use Django, Express (or some similar Python / JS web framework) to build a web application
- Generate a database that includes sensors and heartbeats
- A sensor is a device in the field. It generally includes a serial number and other metadata
- A heartbeat is a periodic message used to tell the backend that the sensor is online and provide the current state of the sensor
- It is left as an exercise to the candidate to define exactly what data is stored (as well as how it is stored) for a sensor and a heartbeat
- Expose an endpoint that can receive "heartbeats" indicating that the sensor is alive and checking in
- Expose an endpoint that can check whether or not a sensor is currently online
Our goal is to understand your thought process, documentation style, and to get a sense of how you reason about a complex system. Please don't spend more than an hour on this. We'd prefer incomplete work with notes on what you focused on, where you left off, and the limitations of your solution.
If you get stuck or need more information, don't hesitate to reach out for clarity!