Glavin001 / SMMApp2

Saint Mary's Mobile App, Version 2.0 @
http://society.cs.smu.ca:7000
2 stars 0 forks source link

iCal Server for Users #8

Open Glavin001 opened 10 years ago

Glavin001 commented 10 years ago

Potentially link up with #19 for events.

Glavin001 commented 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.

Glavin001 commented 10 years ago

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
Glavin001 commented 10 years ago

Library to use: https://github.com/tritech/node-icalendar

Glavin001 commented 10 years ago

Change title from CalDAV support for Student class times to iCal Server for Users.

Glavin001 commented 10 years ago

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.

Glavin001 commented 10 years ago

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.

Glavin001 commented 10 years ago

To test, go to http://localhost:8080/calendar/glavin/calendar.ics

Glavin001 commented 10 years ago

Web calendar: http://arshaw.com/fullcalendar/

Glavin001 commented 10 years ago

Another web calendar: http://www.jefvlamings.com/projects/css3calendar/