A simple collaborative drawing web app
We're hosted at bit.ly/drawbital
- Node.js (Tested with v6.11)
- npm
-
Clone the repo to your computer
> git clone https://github.com/shanwpf/drawbital.git
-
Install node dependencies
> npm install
> npm install gulp -g
-
(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 };
-
Build with gulp
> gulp
This creates:
- /app.js (server)
- /client/js/drawbital-compiled.js (client)
-
Start the server
> node app.js
-
Connect to your server
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.