Coder Social home page Coder Social logo

codybontecou / better-big-canvas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christiantovar/better-big-canvas

0.0 0.0 0.0 6.41 MB

๐ŸŽจ Improved version of Big Canvas built from scratch using Phoenix LiveView.

License: MIT License

JavaScript 8.63% Elixir 64.93% CSS 18.01% HTML 5.43% Dockerfile 0.43% SCSS 2.57%

better-big-canvas's Introduction

Better Big Canvas

Worflow Badge License badge

Description

Better Big Canvas is an improved version of Tech Lead's Big Canvas written in Elixir from scratch. It uses Phoenix LiveView for server side rendering and supports real-time pubsub drawing support. For more information regarding how this application was implemented, visit the following post.


Getting Started

To start Better Big Canvas:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with npm install inside the assets directory
  • Start Phoenix endpoint with mix phx.server
  • Create/Reset the mnesia database by visiting localhost:4000/reset

Now you can visit localhost:4000 from your browser, enjoy drawing to your heart's content!


Drawing Example

Click on any square from the main board, you'll be redirected to a canvas where you can draw anything you want. If you return to the main board, you can preview what you just drew, take a look:

Draw Example

Real-Time Example

One of the main features of Better Big Canvas, is the ability to update the previews of the main board in real-time! Everytime you update a canvas, the changes will be immediately reflected on the correspoding preview canvas of the board. Here's an example of 2 browser windows opened at the same time, if a canvas is edited, the main board will reflect those changes:

Draw Example

License

MIT. See the LICENSE.md in this repository for more details.

better-big-canvas's People

Contributors

christiantovar avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.