Skip to content

Instantly share code, notes, and snippets.

@beweinreich
Last active July 20, 2021 16:54
Show Gist options
  • Save beweinreich/fc572e28b1265eae10acf663ab16654a to your computer and use it in GitHub Desktop.
Save beweinreich/fc572e28b1265eae10acf663ab16654a to your computer and use it in GitHub Desktop.

Density Fullstack Take-home Assignment

Goal

Your goal is to build a web application that displays the latest "heartbeat" from a number of sensors.

Assignment

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment