No description
  • JavaScript 75.1%
  • HTML 17.9%
  • CSS 4.5%
  • Less 2.5%
Find a file
Michael Abashian d72b62f47f
Merge pull request #9 from jakemcdermott/v0.4.4
Change lodash .contains to .includes
2020-07-07 12:21:39 -04:00
app Changed format of all displayed dates to 'mm/dd/yyyy'. 2014-04-02 18:34:27 -04:00
lib Change .contains to .includes 2020-07-06 14:03:10 -04:00
scripts Initial commit 2014-02-26 16:08:27 -05:00
tests Added a detail page that can be used to view the RRule value, first 10 occurrences and the natural language description. Fixed broken tests. Adding contributing details to README. 2014-03-14 15:00:51 -04:00
.gitignore update deps / release 0.0.20 2016-07-29 18:29:20 -04:00
.jshintrc Initial commit 2014-02-26 16:08:27 -05:00
bower.json Merge pull request #4 from xaneem/patch-1 2016-09-07 19:11:32 -04:00
Gruntfile.js Tweaked readme. Added Grunt build. 2014-02-26 17:01:58 -05:00
LICENSE Tweaked readme. Added Grunt build. 2014-02-26 17:01:58 -05:00
package.json Change .contains to .includes 2020-07-06 14:03:10 -04:00
README.md Fixed bower.json to use bootstrap rather than twitter. Added 'bower install' to contributing list. 2014-03-14 15:21:24 -04:00

angular-scheduler

A UI widget for creating or editing repeating calendar entries. Dynamically injects HTML anwhere in an Angular app. Provides methods for converting schedule entry to and from RRule format, based on the iCalendar RFC.

Intalling

bower install angular-scheduler

Using

Coming soon...

Sample App

An example application is included along with a simple node based web server. With node installed, run the following to start the server:

node ./scripts/web-server.js 8000

Visit the sample by pointing your browser to http://localhost:8000/app/index.html

Contributing

After cloning the repo, install the the bower packages listed in bower.json:

bower install

Install the npm packages listed in package.json:

node install

Install Grunt command line:

npm install -g grunt-cli

From the project root run the grunt command. This will execute the default steps found in Gruntfile.js, which will lint and minify the javascript and css files:

grunt

You should see output similar to the following:

Running "jshint:uses_defaults" (jshint) task
>> 2 files lint free.

Running "uglify:my_target" (uglify) task
File "lib/angular-scheduler.min.js" created.

Running "less:production" (less) task
File lib/angular-scheduler.min.css created.

Run tests found in the ./tests directory. GetRRule.js provides a set of unit tests. Install Karma, and launch with the folllowing:

cd test
karma start

SetRRule.js provides end-to-end tests that run with Protractor. Follow the instructions to install protractor and a local selenium server (assuming you don't have access to an existing selenium server). Launch the provided sample app (as described above) in a terminal session. In a separate terminal session launch a local selenium server. The test configuration file expects the web server to run at localhost:8000 and the selenium server to run at localhost:4444. In a third session luanch the tests:

Session 1:
node ./scripts/web-server.js 8000

Session 2: webdriver-manager start

Session 3: cd tests protractor protractorConf.js