The code for the complete app, ready for deployment, is on the completed-calendar
branch.
Install the dependencies by running the following command:
npm install
Create an .env
file in the root folder and save your Google project's OAuth Client ID as an environmental variable called VITE_GOOGLE_CLIENT_ID
:
VITE_GOOGLE_CLIENT_ID=<your-client-id>
Your Google project will need to have the "../auth/calendar.events" scope added.
First, follow the guide to accessing the Bryntum npm repository. Once you’ve logged in to the registry, install the Bryntum Calendar packages.
-
If you’re using the trial version, use the following command:
npm install @bryntum/calendar@npm:@bryntum/calendar-trial @bryntum/calendar-react
-
If you’re using the licensed version, use the following command:
npm install @bryntum/calendar @bryntum/calendar-react
Run the local dev server using the following command:
npm run dev
Open http://localhost:5173, and login using your Google account. You'll see your Google calendar events displayed in the Bryntum Calendar: