Skip to content

The server meant to be used with the FreeDrawing android app

Notifications You must be signed in to change notification settings

Christophe-github/FreeDrawingServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Free drawing server

A web server for the Free drawing android app allowing to draw in multiplayer πŸ–ŒπŸ§‘πŸ–ŒπŸ§‘πŸ–ŒπŸ§‘

Features

  • Create / join a multiplayer room with up to 6 people
  • Transmit your drawing updates to all the other people in the room ➑
  • Receive drawing updates from all the other people in the room β¬…
  • Inactive players or empty rooms are automatically kicked / closed after 60 seconds
  • See all rooms with an http GET query

Architecture

This app was made with:

  • Node.js
  • Typescript
  • Express
  • Websockets to deliver drawing updates to players (thanks to the ws package)
  • nodemon to watch for changes in the dist folder and reload the app

Project setup

npm install

Launch server in dev mode (watch for ts updates)

You will need two terminals (in VSCode you can also build a task regrouping these two tasks)

npx tsc -watch 
npx nodemon dist/App.js

Launch server without dev mode

node dist/App.js

About

The server meant to be used with the FreeDrawing android app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published