5-in-5 Day 3

sean
sean
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:

home screen

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

home screen, icon hover

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

Folder structure of the website, before & after

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).

Error message after deleting the website

The code can be found here.

sean

Written by

sean

im the guy who sucks. plus i got depression. http://twotabsofacid.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade