So, the idea for this experiment was to maintain a queue of editors for a given object (in this case, a project) so that if I open up a project first, I get full editing privileges for as long as my session remains active. Anyone else who opens it up during that time will have read-only access. Then, as soon as I leave the page or close the tab, the next person in line receives the edit rights, and so on and so forth.

Let’s jump straight into this and crack open a new Phoenix project:

mix phx.new editor_queue

We’ll…

Anton Ivanopoulos

Lead Developer @ Papercloud, Lego builder, hip-hop listener.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store