VersaWhiteboard/README.md

47 lines
1.6 KiB
Markdown
Raw Normal View History

2018-02-08 16:52:49 +01:00
# whiteboard
2018-02-09 01:14:44 +01:00
This is a lightweight NodeJS collaborative Whiteboard/Sketchboard witch can easily be customized...
2018-02-09 00:12:29 +01:00
2018-02-09 00:17:43 +01:00
![start](https://raw.githubusercontent.com/cracker0dks/whiteboard/master/doc/start.png)
2018-02-09 00:12:29 +01:00
## Some Features
* Showing remote user cursors while drawing
2018-02-09 01:10:37 +01:00
* Undo function for each user (strg+z as well)
2018-02-09 00:12:29 +01:00
* Drag & Drop Images to Whiteboard from PC and Browsers
* Copy & Paste Images from Clipboard
* Resize, Move & Draw Images to Canvas or Background
* Save Whiteboard to Image and JSON
* Draw angle lines by pressing "shift" while drawing (with line tool)
* Draw square by pressing "shift" while drawing (with rectangle tool)
## Install the App
You can run this app with and without docker
### Without Docker
1. install the latest NodeJs
2. Clone the app
3. Run `npm i` inside the folder
4. Run `node server.js`
5. Surf to http://YOURIP:8080
### With Docker
1. `docker run -d -p 8080:8080 rofl256/whiteboard`
2. Surf to http://YOURIP:8080
2018-02-09 00:16:52 +01:00
## API
Call your site with GET parameters to change the WhiteboardID or the Username
`http://YOURIP:8080?whiteboardid=MYID&username=MYNAME`
* whiteboardid => All people with the same ID are drawing on the same board
* username => The name witch is showing to others while drawing
2018-02-09 00:12:29 +01:00
## Things you may want to know
* Whiteboards are gone if you restart the Server, so keep that in mind (or save your whiteboard)
* This is just a sample layout to show the functions available
* You shoud be able to customize without ever toutching the whiteboard.js (take a look at index.html & main.js)
2018-02-09 00:19:44 +01:00
2018-02-09 01:00:00 +01:00
## ToDo
* Add feedback for errors and things ...
2018-02-09 00:19:44 +01:00
___ MIT License ___