No description
Find a file
2017-03-03 11:29:10 +01:00
lib Add game indexing and routes 2016-11-30 16:03:28 +01:00
.gitignore Add game indexing and routes 2016-11-30 16:03:28 +01:00
app.js Add CORS headers 2017-03-03 11:29:10 +01:00
Dockerfile Add game indexing and routes 2016-11-30 16:03:28 +01:00
package.json Add game indexing and routes 2016-11-30 16:03:28 +01:00
README.md Update instructions 2017-03-03 11:19:23 +01:00

Drawsome-server

  1. Have the following directory structure in /some/absolute/dir:
/some/absolute/dir
|-games
  |-2016-10-04
  | |-game-cadf8c7d8acf7d8cffad8cf7d.json
  | |-game-cadf8c7d8acf7d8cffad8cf7d.json
  | |-game-cadf8c7d8acf7d8cffad8cf7d.json
  |-2016-11-30
    |-game-cadf8c7d8acf7d8cffad8cf7d.json
    |-game-cadf8c7d8acf7d8cffad8cf7d.json

  1. docker build -t yasa/drawsome-server .
  2. docker run -p 3000:3000 -v /some/absolute/dir/games:/usr/src/app/games -d yasa/drawsome-server
  3. Make GET requests to /games and /games/:id