5-in-5 Day 3
Sep 2, 2018 · 2 min read
For day 3 of 5-in-5 I worked on a website that destroys itself when you click a button. Here’s a look at the only screen on the website:

When you hover over the icon it starts blinking different shades of red:

Clicking on this icon makes a call to the server process, which uses node to delete everything recursively from the public folder.


Pressing the button that deletes the public folder also makes a call to refresh all sockets, so the page is destroyed for everyone currently viewing it (or will try to view it in the future). This brings in a time-based component to the piece: view it now before it is destroyed (which anyone has the capability to do).

The code can be found here.
