Skip to content

Rushikesh8603/google-oauth-calendar-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Google OAuth Calendar Integration App

A full-stack web application that enables users to log in securely with their Google account using OAuth 2.0 and view their upcoming Google Calendar events. Built using React (frontend) and FastAPI (backend), this project demonstrates secure authentication, token exchange, and third-party API integration.


πŸš€ Features

  • Google OAuth 2.0 login
  • Access token + refresh token handling
  • Display Google Calendar events on a dashboard
  • Secure token exchange and backend validation
  • Organized frontend/backend folder structure

πŸ› οΈ Tech Stack

  • Frontend: React, Axios, Vite
  • Backend: FastAPI, OAuthlib, Pydantic
  • Auth: Google OAuth 2.0
  • Others: JWT, dotenv, HTTPOnly cookies

πŸ“ Folder Structure

google-oauth-calendar-app/ β”œβ”€β”€ frontend/ # React frontend β”‚ └── ... β”œβ”€β”€ backend/ # FastAPI backend β”‚ └── ... └── README.md


πŸ§‘β€πŸ’» How to Run the Project Locally

1. Clone the Repository

git clone https://github.com/Rushikesh8603/google-oauth-calendar-app.git cd google-oauth-calendar-app

  1. Backend (FastAPI) πŸ”§ Setup

cd backend python -m venv venv source venv/bin/activate # Use venv\Scripts\activate on Windows pip install -r requirements.txt

πŸ”‘ Create .env file

GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret REDIRECT_URI=http://localhost:8000/callback FRONTEND_URL=http://localhost:5173

▢️ Run Backend

uvicorn main:app --reload

  1. Frontend (React) πŸ”§ Setup

cd frontend npm install

▢️ Run Frontend

npm run dev Access frontend at: http://localhost:5173

πŸ” Google OAuth Setup Go to Google Cloud Console

Create a new project & OAuth credentials

Set:

Authorized redirect URI: http://localhost:8000/callback

Authorized JavaScript origin: http://localhost:5173

Copy Client ID and Client Secret to your .env file

πŸ“… API Used Google Calendar API API Docs Used to fetch user’s upcoming events after authentication

πŸ“Έ Demo

Watch Demo https://youtu.be/UCR5bZ7TyG8?si=eXzynsU_pyLrFXFm

πŸ§‘β€πŸ’» Author Rushikesh Patare

About

A full-stack web app that uses Google OAuth 2.0 to authenticate users, access their Google Calendar events, and check if a specific time slot is free or busy. Users can also select a date/time to verify availability before scheduling meetings. Built using React, FastAPI, and PostgreSQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages