calendar-server

    0.0.1 • Public • Published

    Calendar Server

    Offers support to manage Google Calendar events.

    Create Test Credential Account

    This guide uses a test account and credential. For production, LGU should enable a Google Account and Credential.

    1. Open web browser and visit https://developers.google.com/calendar/quickstart/nodejs

    2. Under Step 1: Turn on the Google Calendar API, click on Enable the Google Calendar API.

    3. Enter on the Enter new project name and click Next.

    4. On the Configure your OAuth Client, select Desktop App.

    5. Click on DOWNLOAD CLIENT CONFIGURATION and save the file "credentials.json".

    6. Copy both the Client ID and Client Key and save it on a file for later reference.

    7. Click on Done.

    Configuring and Running Calendar Server

    1. Copy "credentials.json" on the "docker/calendar/credentials" folder.

    2. Open "docker/calendar/docker-compose" and verify that the credentials folder is properly mounted.

    3. Run calendar container.

    API

    1. Insert event

      Url: /calender/event/insert

      Method: POST

      Body (example json event) :

      {
         summary: "Rameses Meeting",
         location: "Cebu City",
         description: "Monthly",
         start: {
            dateTime: "2020-09-10T09:00:00-07:00",
            timeZone: "Asia/Manila"
         },
         end: {
            dateTime: "2020-09-10T12:00:00-07:00",
            timeZone: "Asia/Manila"
         },
         recurrence: ["RRULE:FREQ=DAILY;COUNT=1"],
         attendees: [
            { email: "jzamss@gmail.com" },
            { email: "elmonazareno@gmail.com" }
         ],
         reminders: {
            useDefault: false,
            overrides: [
               { method: "email", minutes: 1440 },
               { method: "popup", minutes: 10 }
            ]
         }
      }
    2. List events

      Url: /calender/event/list

      Method: GET

    Keywords

    none

    Install

    npm i calendar-server

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    22.1 kB

    Total Files

    18

    Last publish

    Collaborators

    • ramesesinc