Open Glavin001 opened 10 years ago
Looks like we cannot support CalDAV with Node.js but maybe we can write the iCal files: http://en.wikipedia.org/wiki/ICalendar#Core_object
Closing this to discuss later.
Example iCalendar file below.
Looks like we can absolutely create an iCal Server in Node.js!
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:EpisodeCalendar.com
CALSCALE:GREGORIAN
PRODID:iCalendar-Ruby
BEGIN:VEVENT
DESCRIPTION:When Professor Proton asks Leonard for help with an experiment\
, Sheldon retaliates by befriending Proton's rival\, Bill Nye.
DTSTAMP:20131227T025816
DTSTART;VALUE=DATE:20131107
CLASS:PUBLIC
SEQUENCE:0
SUMMARY:The Big Bang Theory - s07e07
UID:2013-12-27T02:58:16+01:00_229934026@Ubuntu
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:When a mistake comes to light\, Sheldon makes Leonard walk a mi
le in his shoes\; Penny decides to confront Raj's ex.
DTSTAMP:20131227T025816
DTSTART;VALUE=DATE:20131114
CLASS:PUBLIC
SEQUENCE:0
SUMMARY:The Big Bang Theory - s07e08
UID:2013-12-27T02:58:16+01:00_222693668@Ubuntu
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:When the gang decides to spend Thanksgiving at Mrs. Wolowitz's
house\, Sheldon protests\; Leonard and Penny deal with an error from her pa
st.
DTSTAMP:20131227T025816
DTSTART;VALUE=DATE:20131121
CLASS:PUBLIC
SEQUENCE:0
SUMMARY:The Big Bang Theory - s07e09
UID:2013-12-27T02:58:16+01:00_676254176@Ubuntu
END:VEVENT
END:VCALENDAR
Library to use: https://github.com/tritech/node-icalendar
Change title from CalDAV support for Student class times
to iCal Server for Users
.
I have forked the node-icalendar: https://github.com/Glavin001/node-icalendar I will add the missing support that we need and provide a stable source for the code to include in dependencies.
See http://stevethomas.com.au/php/how-to-build-an-ical-calendar-with-php-and-mysql.html for more information about building a custom iCal server.
To test, go to http://localhost:8080/calendar/glavin/calendar.ics
Web calendar: http://arshaw.com/fullcalendar/
Another web calendar: http://www.jefvlamings.com/projects/css3calendar/
Potentially link up with #19 for events.