项目作者: iulian-rusu
项目描述 :
Web application with interactive drawing board.
高级语言: JavaScript
项目地址: git://github.com/iulian-rusu/draw-it.git
Draw It!
Description
Draw It is a web programming project made with Node.js
on the server side and plain HTML
, CSS
and JS
on the client side.
The application uses socket.io
for real time chat communication. All data is saved in a MongoDB
database in the cloud (using MongoDB Atlas and mongoose
for database access).
App features include:
- User account management system with registration and modification of data on request
- Password encryption with
bcrypt
- Error handling with client-side message boxes
- Session management for detecting invalid access to resources
- Real-time chat with customizable username colors
- User statistics like the number of messages sent
- Real-time collaborative drawing board
- Support for touch screen drawing
- Ability to create/delete rooms and set a maximum amount of members
- Ability to search rooms by name
How to run locally
- Install
Node.js
$ git clone
the repository- Run
$ npm install
in the main directory - Create a MongoDB Cloud account and set-up a database
- Alternatively, install
MongoDB
locally
- Get the connection URI for the database
- Run
$ echo 'DB_URI=<YOUR_URI>' > .env
in the main directory, where <YOUR_URI>
is the connection URI for your database - Run
$ node app.js
in the main directory to start the server on 0.0.0.0:7070
- Visit
http://localhost:7070
in your browser
Some screenshots
Front page

Account page

Joining an empty room

Another user joining the room

Drawing on the board

Drawing with touch events on mobile displays
