DataServer
In distribution folder, CalJsonGenerator.js file contains code to generate data needed to supply to CalenStyle.
Sometimes, this process of generating data on frontend itself may result in degraded performance of Calenstyle View. To tackle this problem DataServer is provided.
DataServer can be used to generate data(events, appointments) needed to supply to CalenStyle.
Usage
Start Node Server "DataServer"
- Make sure that node.js is installed. If not install it from https://nodejs.org/en/download/
- Change directory to path of DataServer
(for example, cd "/Volumes/MyVolume1/DataServer")
- Run command "npm install"
- Run command "npm start"
After running this, you can see "Express server listening on port 3000"
Use Request Data on "DataServer"
-
Find your IP address/ Localhost IP address
For example, http://192.168.1.4
Mac : http://osxdaily.com/2010/11/21/find-ip-address-mac/
Windows : http://windows.microsoft.com/en-in/windows/find-computers-ip-address
-
Append port number on which node server is listening to localhost address
For example, http://192.168.1.4:3000
-
Events
Append "events"
For example, http://192.168.1.4:3000/events
calDataSource:
[
{
sourceFetchType: "DateRange",
sourceType: "URL",
source: "http://192.168.1.4:3000/events"
}
]
-
Appointments
Append "slotavailability"
For example, http://192.168.1.4:3000/slotavailability
calDataSource:
[
{
sourceFetchType: "DateRange",
sourceType: "URL",
source: "http://192.168.1.4:3000/slotavailability"
}
]
-
Calendar
Append "eventcalendar"
For example, http://192.168.1.4:3000/eventcalendar
-
Event or Task Status
Append "eventortaskstatus"
For example, http://192.168.1.4:3000/eventortaskstatus
-
Blocked Times
Append "blockedtimes"
For example, http://192.168.1.4:3000/blockedtimes
-
Filter Criteria
Append "filtercriteria"
For example, http://192.168.1.4:3000/filtercriteria
-
Multiple Sources
Append "misc?types=events,eventcalendar,eventortaskstatus"
For example, http://192.168.1.4:3000/misc?types=events,eventcalendar,eventortaskstatus
calDataSource:
[
{
sourceFetchType: "DateRange",
sourceType: "URL",
source: "http://192.168.1.4:3000/misc?types=events,eventcalendar,eventortaskstatus"
}
]
Developing
Tools
Created with Nodeclipse
(Eclipse Marketplace, site)
Nodeclipse is free open-source project that grows with your contributions.