This project demonstrates how to integrate Syncfusion EJ2 Angular Scheduler with the Google Calendar API, allowing full CRUD operations (Create, Read, Update, Delete) directly on a user’s Google Calendar.
To run this project follow the below steps,
- Clone this project
- Install packages using
npm install
To interact with Google Calendar, enable the API and create OAuth credentials.
- Visit the Google Cloud Console.
- Click Select a project (dropdown at the top) and then New Project.
- Name your project (e.g., "React-Scheduler-Google") and click Create.
- From the navigation menu (hamburger icon top-left), go to APIs & Services > Library. Search for "Google Calendar API". Select it and click Enable.
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID.
- Choose Web application.
- Add Authorized JavaScript origins: http://localhost:3000 (for development).
- Add Authorized redirect URIs: http://localhost:3000 (or your app's URL).
- Click Create.
- Copy the Client ID – you'll use it in the code.
- Go to APIs & Services > Credentials.
- Click Create Credentials > API Key.
- Copy the API Key – you'll use it in the code.
Replace your calendar-id, client-id and calendar-id in the schedule.js.
ng serve --open