Skip to content

Server application that scans google calendars for leave events matching specific criteria and logs details on them.

License

Notifications You must be signed in to change notification settings

atsid/gcal-leave-scraper

Repository files navigation

Build Status Code Climate Test Coverage Dependency Status devDependency Status

gcal-leave-scraper

Server application that scans google calendars for leave events matching specific criteria and logs details on them.

Requirements

  • Node version 4.*
  • Local MongoDB
  • Gulp

How to launch

  • Start your MongoDB instance. "docker run --name gcal-leave-scraper -p 27017:27017 mongo --smallfiles"
    or
    mongod --port 27017 --dbpath <mongoHome>\data\db
  • "gulp develop" from the project root
  • Go to localhost:9000 in your web browser

Quickstarts

  • Use the quickstarts/quickstart-mine.sh script to create a user and put the user in Mongo along with any matching events.

To create a service account with Google

  • Go to https://console.developers.google.com and setup a new application
  • From the application "Overview" screen, enable the Google Calendar API, Google+ API, and admin SDK
  • From the "Credentials" screen click "Add credential" -> "OAuth 2.0"
  • Set the credential application type to "web", and add oauth domain and callback

Configuration

  • Set environment variables for GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_CLIENT_DOMAIN from the google credentials section above
  • Set environment variable for db LEAVE_TIMELINE_DB > mongodb://localhost:27017/gcal-leave-scraper

Misc Thoughts

About

Server application that scans google calendars for leave events matching specific criteria and logs details on them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages