I'm using fullcalendar, nodejs, and mongoose. I have already been able to generate the json file. But by passing the path in fullscalendar js, I can not retrieve events.
I created a test file in json and called it as follows:
script(type='text/javascript').
$(document).ready(function() {
$('.calendar').fullCalendar( {
header: {
right: 'prev,next today,month,agendaWeek,agendaDay'
},
aspectRatio: 2,
events: "/calendars.json"
} );
});
But it does not work. I wanted to know how I can do to call the mongoose information and display it on the calendar.