8000 GitHub - elefevre/code-elevator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

elefevre/code-elevator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Elevator

This is a slightly modified version of Sebastian original code-elevator, we have changed :

  • A script to run the server (./run.sh)
  • The admin login/password is hardcoded to admin/admin
  • The default number of potential passenger is bumped from 0 to 3

Rules

The goal of the game is to implement an elevator engine. Participants have to subscribe with a login, an email (in order to display a linked gravatar) and a server url. Then HTTP GET requests will be send to this server :

events (just respond HTTP 200 return code)

  • /call?atFloor=[0-5]&to=[UP|DOWN]
  • /go?floorToGo=[0-5]
  • /userHasEntered
  • /userHasExited
  • /reset?cause=information+message

response

  • /nextCommand : body of the request must contains NOTHING, UP, DOWN, OPEN or CLOSE

Prerequisites

Here is what you need to build and run a code elevator session :

  • JDK 1.7
  • maven 3.x

Steps

$ git clone git@github.com:jeanlaurent/code-elevator.git
$ cd code-elevator
$ mvn clean install
$ mvn --file elevator-server jetty:run

Go to http://localhost:8080, subscribe to a session and start implementing your participant server.

If you want to increase the number of people at any given time, go to http://localhost:8080/#/administration, log in with user admin and password admin.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 49.9%
  • JavaScript 46.8%
  • CSS 2.0%
  • Shell 1.3%
0