Like Corion, I used Full Calendar to deliver the front end.
I rolled my own backend with Mojolicious. Someone else is pulling together the calendar data for another system and I'm pushing out the associated ical feeds. I making calls to an Oracle database and create calendar events with
while ( my ($name, $stime, $etime, $unid, $loc, $desc) = $sth->fetchro
+w_array() ) {
my ($start, $end) = oracle_to_datetime($stime, $etime);
push @event_list, {
start => $start,
end => $end,
summary => $name,
location => $loc,
description => $desc,
uid => $unid,
};
}
where the oracle_to_datetime sub returns DateTime objects and then return a json object with
$self->render(json => \@event_list);
to FullCalendar.
I'm still finding my way with Mojolicious, but I think that's all it needed. Oh, and don't tell anybody how easy it was. My mistake :)
|