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