epas-phase-2

Automated Event Planner and Approval System - Phase 2

Python Flask PostgreSQL Git AI-Assisted

Executive Summary

This project aims to digitize institutional workflows at JNU Jaipur, replacing outdated paper-based approvals with a transparent, efficient digital system (referencing Section 3.2 of the project synopsis). This Phase 2 repository implements the core Event Submission Interface and the basic workflow logic, serving as the foundational module of the platform.

Phase 2 Scope

This repository specifically contains the Basic Event Submission Workflow. It includes:

Tech Stack

Installation Guide

Follow these step-by-step instructions to set up the project locally:

  1. Clone the repository:
    git clone https://github.com/CyberSential22/epas-phase-2.git
    cd epas-phase-2
    
  2. Set up a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Environment Variables: Create a .env file in the root directory and add the following:
    SECRET_KEY=your_secret_key
    FLASK_ENV=development
    
  5. Run the application locally:
    python run.py
    

    The application will be accessible at http://127.0.0.1:5000/.

Project Structure

epas-phase-2/
├── app/
│   ├── blueprints/    # Application modules (main, events)
│   ├── forms/         # WTForms definitions
│   ├── models/        # SQLAlchemy database models
│   ├── routes/        # Blueprint routing
│   ├── static/        # CSS, JS, Images
│   ├── templates/     # Jinja2 HTML templates
│   ├── utils/         # Helper functions (e.g., ip_utils)
│   ├── config.py      # App configurations
│   ├── errors.py      # Global error handlers
│   └── __init__.py    # App factory function
├── instance/          # Local database files
├── logs/              # Application logs
├── venv/              # Python virtual environment
├── .gitignore         # Untracked files configuration
├── requirements.txt   # Project dependencies
├── run.py             # Entry point for the application
└── vercel.json        # Vercel proxy configuration

Deployment Overview

The final production architecture is designed to be highly accessible and resilient:

Acknowledgments

License

This project is licensed under the MIT License.