This Django backend provides an authentication and API integration with Google Calendar to allow users to log in and view all the events in their Google Calendar. It uses the Google Calendar API and OAuth2 for authentication and authorization.
- Google OAuth2 authentication for user login
- Fetches and displays all events from the user's Google Calendar
- Handles token storage and refresh for authenticated requests
- Supports Django 3.x and Python 3.x
- Python 3.x
- Django 3.x
- Google API credentials file (JSON format) for OAuth2 authentication
- Clone the repository:
git clone https://github.com/samaksha/EventFlow.git
- Install the required packages:
pip install -r requirements.txt
- Add your Google API credentials file to the project directory and update the GOOGLE_CREDENTIALS_FILE setting in settings.py with the path to your credentials file: python
GOOGLE_CREDENTIALS_FILE = 'client_secret.json'
- Set up Django database and run migrations:
python manage.py migrate
- Start the Django development server:
python manage.py runserver
- Access the backend at http://localhost:8000/ in your web browser.