Skip to content

colealbon/naperville-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installation

git clone https://github.com/colealbon/naperville-lab.git  
cd naperville-lab;  
cp config/options.js.example config/options.js  
npm install  
npm start  

for developers

transpile jsx source files to js files

node ./node_modules/babel-cli/bin/babel.js --presets react jsx --out-dir ./public/js

comment out stylesheets/wireframe.css in views/index.swig to remove menacing borders

usage

  1. navigate to localhost:3000
  2. drag the colored dot around the screen
  3. open a new window at localhost:3000
  4. you should now have 2 dragable dots
  5. refresh button resets the dot positions

status (partially completed)

  • javascript program running under node.js
  • the circle owned by the user should have a border
  • input your name limited to 16 characters
  • there must be at least 8 color patches to choose from
  • user can select a color by clicking on one of the patches
  • different users can be logged in on same machine or different machines
  • circle position communication between client and server must be through websocket
  • when a user closes the browser tab, circle must disappear for other users
  • when a user logs in the initial screen must show all connected circles
  • when a user moves a circle, the circle must move on other user's screens
  • client side application must have no memory of the last user
  • store the users data on the server in volatile fashion
  • server side application must combine http and socket servers
  • the client should be able to run remotely from the server
  • server side file paths must be relative

About

Demonstrates koa2, react, socket.io, drag & drop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published