📅 2024-02-16 — Session: Configured and Tested Flask Application with Google OAuth
🕒 17:55–18:45
🏷️ Labels: Flask, Google Oauth, Testing, Cloud Hosting, Error Handling
📂 Project: Dev
⭐ Priority: MEDIUM
Session Goal
The primary objective of this session was to configure, test, and deploy a Flask application with integrated Google OAuth authentication.
Key Activities
- Testing Application for Exercise Loading: A comprehensive checklist was utilized for manual and automated testing using Python’s unittest framework.
- Running Flask Locally: Instructions were followed to start a Flask application locally, set environment variables, and access routes.
- Configuring Flask in VS Code: Implemented OAuth2 flow and SQLAlchemy User model in VS Code.
- Data Management Adjustments: Modified the application for CSV and JSON data handling.
- Error Troubleshooting: Resolved import errors related to Flask-Session and TemplateNotFound issues.
- Google OAuth Integration: Set up Google OAuth for user authentication and created a Web application client ID.
- Cloud Hosting: Explored hosting options on Google Cloud Platform and deployed on Google App Engine.
Achievements
- Successfully integrated Google OAuth into the Flask application.
- Resolved key errors and configured the application for local and cloud deployment.
Pending Tasks
- Further testing of OAuth integration in different environments.
- Monitoring application performance on Google App Engine.