Question

I am trying to write an application that will use Ember to post to a Rails app with a Postgres database backend. The application has a front end that deals with users calendars and keeping track of recurrence of events so I thought it would be great to use the iCal format for keeping track of everything and doing exports. Is there a JavaScript library that would work for generating, parsing and exporting iCal formatted events?

Thanks!

Was it helpful?

Solution

There is a NodeJS module called node-icalendar, which you can use in conjunction with browserify (a tool that lets you use NodeJS modules in the browser) generate and parse iCalendar files in your front-end app.

I've used node-icalendar in my own NodeJS apps, without too much luck (that's not to say it won't work for you!). What I personally ended up doing was reading the iCalendar spec and formulating my own super bare-bones .ical file generator that exactly met my needs.

OTHER TIPS

Wouldn't you want to parse the icalendar file on the server with Rails? You could use something like ri_cal.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top