Technical portion of the interview for HPC Student Web Developer
The goal of this technical excercise is to create a new node in the NodeRED framework from the specifications given below. Focus should be placed on correctness, documentation, and code clarity.
- Fork this repository.
- Install NodeRED
- Develop the specified node, starting with the templates provided in this repository.
- Add the node to NodeRED.
- Submit a pull request with your changes.
- The sanitizer node should take a JSON object in msg.payload, sanitize it based on a user-defined configuration, and then send the sanitized object on msg.payload.
- The sanitizer node's edit template (defined in sanitizer.html) should allow the user to specify an object configuration. This configuration will define how the object passed on msg.payload is sanitized. The built-in switch node should provide a good starting point for building the sanitizer node's edit template.
- This Stackoverflow answer should offer a good starting for what to look for when sanitizing a JSON object.