Giter Club home page Giter Club logo

drawbital's Introduction

Drawbital

A simple collaborative drawing web app

Using Drawbital

We're hosted at bit.ly/drawbital

Hosting Drawbital

Prerequisites

  1. Node.js (Tested with v6.11)
  2. npm

Steps

  1. Clone the repo to your computer

    > git clone https://github.com/shanwpf/drawbital.git

  2. Install node dependencies

    > npm install > npm install gulp -g

  3. (Optional) Modify /src/app.js to use your own Firebase database

    var config = {
    	apiKey: YOUR_API_KEY,
    	authDomain: YOUR_AUTH_DOMAIN,
    	databaseURL: YOUR_DATABASE_URL,
    	projectId: YOUR_PROJECTID,
    	storageBucket: YOUR_STORAGE_BUCKET,
    	messagingSenderId: YOUR_SENDER_ID
    };
    
  4. Build with gulp

    > gulp

    This creates:

    • /app.js (server)
    • /client/js/drawbital-compiled.js (client)
  5. Start the server

    > node app.js

  6. Connect to your server

    localhost:2000

    The default port is 2000. To change it, edit

    server.listen(process.env.PORT || 2000);

    to

    server.listen(process.env.PORT || <YOUR_PORT_HERE>);

    in /src/app.js and rebuild.

drawbital's People

Contributors

shanwpf avatar koo1993 avatar

Stargazers

Marcus Koh avatar

Forkers

kohchihao koo1993

drawbital's Issues

add eraser

Is possible add eraser for delete or erease each object or draw independly

Split Surface into publicSurface and serverSurface

publicSurface: Displays real-time client strokes
serverSurface: Displays saved elements

At the end of each stroke, the stroke is copied to serverSurface and deleted from publicSurface.
This implementation will help issue #11 since undo/redo can simply refresh serverSurface while publicSurface is untouched.

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.