Skip to content

Toy project to demonstrate Phoenix LiveView and PubSub abilities

Notifications You must be signed in to change notification settings

Bounga/click_to_draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Click To Draw

This is a toy project I wrote to play with Phoenix LiveView especially clicks position detection and Phoenix PubSub integration.

This is a drawing board that is live updated as you click. It's distributed therefore each browser connected to http://localhost:4000/svg_live will receive updates from other ones in real-time and see its board being updated.

Demo

Demo GIF

Installation

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000/svg_live from your browser.

You can open more browser instances / tabs to play with real-time updates across clients.

Learn more

About

Toy project to demonstrate Phoenix LiveView and PubSub abilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published