added entry and film model

This commit is contained in:
Hamo Hapic
2014-09-01 16:58:20 +02:00
parent 8eafca63cf
commit e176c70f18
10 changed files with 332 additions and 0 deletions

View 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'"
}
]
}
]

View 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