diff --git a/Dockerfile b/Dockerfile index 488d04d..7b4b95b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,5 @@ RUN npm install # Bundle app source COPY . /opt/app -EXPOSE 80 +EXPOSE 8080 CMD [ "npm", "start" ] diff --git a/README.md b/README.md index a6ba359..e57ae78 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a lightweight NodeJS collaborative Whiteboard/Sketchboard witch can easi * Undo function for each user (strg+z as well) * Drag & Drop Images to Whiteboard from PC and Browsers * Copy & Paste Images from Clipboard to the Whiteboard -* Able to write text +* Write text * 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) @@ -21,7 +21,7 @@ You can run this app with and without docker 1. install the latest NodeJs 2. Clone the app 3. Run `npm i` inside the folder -4. Run `node server.js` +4. Run `npm start` 5. Surf to http://YOURIP:8080 ### With Docker @@ -43,7 +43,10 @@ Call your site with GET parameters to change the WhiteboardID or the Username * You shoud be able to customize without ever toutching the whiteboard.js (take a look at index.html & main.js) ## ToDo -* Add feedback for errors and things ... +* Enable drag and drop for texts +* Show indicator on slider which tool is active (Pen, Text...) +* Make undo function more reliable on texts +* Add more callbacks for errors and things ... ## Nginx Reverse Proxy configuration Add this to your server part: @@ -66,5 +69,9 @@ You can give each group its own whiteboard by changeing the WHITEBOARDNAME in th Note: You might have to serve the app with https (If your nextcloud server runs https). To do so, its recommend to run this app behind a reverse proxy. (as shown above) +#### (Optional) Set whiteboard icon in nextcloud +![start](https://raw.githubusercontent.com/cracker0dks/whiteboard/master/doc/iconPrev.jpg) + +Upload both icons present at /doc/nextcloud_icons/ to your nextcloud at the "external sites" admin section. Then set it as symbol on your link. ___ MIT License ___ diff --git a/doc/iconPrev.jpg b/doc/iconPrev.jpg new file mode 100644 index 0000000..6ce1c66 Binary files /dev/null and b/doc/iconPrev.jpg differ diff --git a/doc/nextcloud_icons/whiteboard-new.png b/doc/nextcloud_icons/whiteboard-new.png new file mode 100644 index 0000000..365b1a9 Binary files /dev/null and b/doc/nextcloud_icons/whiteboard-new.png differ diff --git a/doc/nextcloud_icons/whiteboard.png b/doc/nextcloud_icons/whiteboard.png new file mode 100644 index 0000000..9bcbf34 Binary files /dev/null and b/doc/nextcloud_icons/whiteboard.png differ