Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.16 KB

README.md

File metadata and controls

36 lines (29 loc) · 2.16 KB

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