added entry and film model
This commit is contained in:
18
tools/testbackend/sff2014/schedule.json
Normal file
18
tools/testbackend/sff2014/schedule.json
Normal file
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"dayOfWeek": "Fri",
|
||||
"date": "15. Aug",
|
||||
"year": "2014",
|
||||
"films": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Amores Perros",
|
||||
"venue": "Summer Theatre HT Eronet",
|
||||
"time": "20:30",
|
||||
"duration": "154'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
10
tools/testbackend/simplewebserver.rb
Executable file
10
tools/testbackend/simplewebserver.rb
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env ruby
|
||||
require 'webrick'
|
||||
|
||||
include WEBrick
|
||||
|
||||
port = 8080
|
||||
puts "Starting server: http://#{Socket.gethostname}:#{port}"
|
||||
server = HTTPServer.new(:Port=>port,:DocumentRoot=>Dir::pwd )
|
||||
trap("INT"){ server.shutdown }
|
||||
server.start
|
||||
Reference in New Issue
Block a user