Skip to content

About

IIChE CLUB WEBSITE

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IIChE BIT Mesra Logo

IIChE Student Chapter, BIT Mesra

Official Website & Event Management System

Empowering Future Chemical Engineers Through Innovation, Leadership & Technical Excellence.

HTML5 CSS3 JavaScript Tailwind CSS FastAPI Python PostgreSQL Redis Docker GSAP


πŸ“– About

The IIChE Student Chapter, BIT Mesra is a premier student organization dedicated to promoting innovation, technical excellence, and professional growth in Chemical Engineering. This repository contains the full source code for the official digital platform of the chapter, featuring a dynamic frontend integrated with a robust FastAPI backend.

The platform handles chapter initiatives, technical events (such as Coalescence), workshops, alumni interactions, executive board profiles, secure user authentication, real-time event registration, and an admin management dashboard.


✨ Features

  • Modern & Responsive UI: Designed with Tailwind CSS v4 and smooth GSAP/Lenis scroll animations.
  • Authentication & Security: Email/password authentication, Google OAuth 2.0, OTP-based password reset, session cookies (HttpOnly, SameSite), and CSRF protection.
  • Dynamic Event Registrations: Authenticated user event registration flow with instant feedback and registration status tracking.
  • Admin Dashboard: Comprehensive admin panel (/pages/admin.html) to create/edit events, view live registration counts, manage registrations, and export attendee data to CSV.
  • Cloudinary Media Delivery: High-performance image hosting for chapter galleries and team photos.
  • RESTful API: OpenAPI (Swagger) compliant FastAPI backend built with SQLAlchemy 2.0 async ORM and Alembic database migrations.

πŸ›  Tech Stack

Frontend

Component Technology
Markup & Styling HTML5, CSS3, Tailwind CSS v4 (@tailwindcss/cli)
Interactivity & Animations JavaScript (ES6+), GSAP, Lenis Smooth Scroll
API Communication Custom Client SDK (auth-client.js, events-client.js)

Backend & Infrastructure

Component Technology
Framework Python 3.12+, FastAPI, Uvicorn (ASGI)
Database & ORM PostgreSQL / SQLite, SQLAlchemy 2.0 (Async), Alembic
Caching & Rate Limiting Redis
Containerization Docker, Docker Compose
Image Hosting Cloudinary CDN

πŸ“ Project Structure

iiche/
β”œβ”€β”€ index.html                   # Main landing page
β”œβ”€β”€ auth-client.js               # Frontend Auth & API Client SDK
β”œβ”€β”€ events-client.js             # Dynamic Events & Registration SDK
β”œβ”€β”€ input.css                    # Tailwind CSS source file
β”œβ”€β”€ output.css                   # Compiled Tailwind CSS output
β”œβ”€β”€ package.json                 # Node.js dependencies (Tailwind CLI)
β”œβ”€β”€ assests/                     # Logos, brand assets, images
β”œβ”€β”€ pages/                       # Website pages
β”‚   β”œβ”€β”€ login.html               # Login & Account Signup
β”‚   β”œβ”€β”€ forgot-password.html     # Request OTP
β”‚   β”œβ”€β”€ verify-otp.html          # OTP verification
β”‚   β”œβ”€β”€ reset-password.html       # Set new password
β”‚   β”œβ”€β”€ events.html              # Events portal
β”‚   β”œβ”€β”€ admin.html               # Admin management dashboard
β”‚   β”œβ”€β”€ departments.html         # Departmental structure
β”‚   β”œβ”€β”€ committee.html           # Team & Committee details
β”‚   └── more.html                # Additional resources
β”œβ”€β”€ events/                      # Event specific showcase pages
β”‚   β”œβ”€β”€ coalescnece.26.html
β”‚   β”œβ”€β”€ coalescnece.25.html
β”‚   β”œβ”€β”€ workshop.html
β”‚   β”œβ”€β”€ talks.html
β”‚   └── otherevents.html
β”œβ”€β”€ committee/                   # Executive board & vision
└── backend/                     # FastAPI Backend Application
    β”œβ”€β”€ app/
    β”‚   β”œβ”€β”€ main.py              # Application entry point
    β”‚   β”œβ”€β”€ api/v1/              # API Route Handlers (Auth, Events, Admin, Users)
    β”‚   β”œβ”€β”€ core/                # Config, Security, DB session, Dependencies
    β”‚   β”œβ”€β”€ models/              # SQLAlchemy ORM Models
    β”‚   β”œβ”€β”€ schemas/             # Pydantic Request/Response validation
    β”‚   └── services/            # Business Logic Layer
    β”œβ”€β”€ alembic/                 # Database Migrations
    β”œβ”€β”€ docker-compose.yml       # Docker Compose setup (FastAPI + Postgres + Redis)
    β”œβ”€β”€ Dockerfile               # Production container spec
    β”œβ”€β”€ make_admin.py            # CLI script to grant admin privileges
    β”œβ”€β”€ requirements.txt         # Python dependencies
    └── .env.example             # Environment variables template

βš™οΈ Prerequisites

Before running the website locally, ensure you have the following installed on your machine:

  1. Node.js: v18.0.0 or higher (includes npm) - Download Node.js
  2. Python: v3.12 or higher - Download Python
  3. Docker & Docker Compose (Recommended for Backend) - Download Docker Desktop
  4. (Optional) Git: For repository management.

πŸš€ Local Setup & Execution Guide

Follow these step-by-step instructions to get both the Frontend and Backend running on your local machine.

Step 1: Clone the Repository

git clone https://github.com/raghavagarwal-debug/iiche-final-repo.git
cd iiche-final-repo

Step 2: Set Up & Run the Frontend

  1. Install Node Dependencies: Install Tailwind CSS CLI and related dependencies from the root directory:

    npm install
  2. Compile / Watch Tailwind CSS: Run the Tailwind CLI watcher to automatically compile input.css into output.css when styles change:

    npx @tailwindcss/cli -i ./input.css -o ./output.css --watch

    (Keep this terminal running or run once without --watch to generate output.css).

  3. Serve the Static Frontend: Launch a local HTTP server from the repository root directory. You can use any of the following options:

    • Option A: VS Code Live Server extension Right-click index.html in VS Code and select "Open with Live Server" (default port 5500).

    • Option B: Node serve CLI

      npx serve -l 5500 .
    • Option C: Python Built-in HTTP Server

      python -m http.server 5500

    The frontend interface will be available at: http://localhost:5500


Step 3: Set Up & Run the Backend API

You can start the backend using Docker Compose (Quickest) or via a Local Python Virtual Environment.

Option A: Quick Start with Docker Compose (Recommended)

  1. Navigate to the backend directory:

    cd backend
  2. Set up Environment Variables: Copy .env.example to create your local .env file:

    cp .env.example .env

    (Note: On Windows PowerShell, use copy .env.example .env)

  3. Start all backend services (FastAPI + PostgreSQL + Redis):

    docker-compose up -d --build
  4. Run Database Migrations: Apply Alembic migrations to create the required tables in PostgreSQL:

    docker-compose exec api alembic upgrade head

Option B: Local Python Setup (Without Docker)

If you prefer to run Python directly without Docker containers:

  1. Navigate to the backend directory:

    cd backend
  2. Create and Activate a Python Virtual Environment:

    • On Windows (PowerShell):
      python -m venv venv
      .\venv\Scripts\activate
    • On macOS / Linux:
      python3 -m venv venv
      source venv/bin/activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Configure Environment Variables: Create a .env file from .env.example:

    cp .env.example .env

    If using SQLite locally instead of PostgreSQL, set DATABASE_URL=sqlite+aiosqlite:///./iiche_dev.db in .env.

  5. Apply Database Migrations:

    alembic upgrade head
  6. Start the FastAPI Uvicorn Server:

    uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

    The API server will start at: http://localhost:8000


Step 4: Create an Admin Account (Admin Dashboard Access)

To access the Admin Dashboard (/pages/admin.html) and manage events/registrations:

  1. Open http://localhost:5500/pages/login.html in your browser and register a new user account (or use an existing account).
  2. Open a terminal in the backend/ directory (with virtual environment active or inside Docker container).
  3. Run the make_admin.py CLI script with your registered email (and optionally specify a new password):
    python make_admin.py your_email@example.com [new_password]
    Example:
    python make_admin.py satyamkumar29848@gmail.com admin123
  4. Log in on the website with your email and password. You can now access http://localhost:5500/pages/admin.html with full administrative privileges!

πŸ”— Key URLs & Local Endpoints

Resource Service / URL
Frontend Homepage http://localhost:5500
Login & Register http://localhost:5500/pages/login.html
Admin Dashboard http://localhost:5500/pages/admin.html
Events Portal http://localhost:5500/pages/events.html
Backend API Base http://localhost:8000/api/v1
Swagger Interactive API Docs http://localhost:8000/docs
ReDoc API Documentation http://localhost:8000/redoc
Backend Health Check http://localhost:8000/health

πŸ§ͺ Testing & API Documentation

  • Interactive API Testing: Access http://localhost:8000/docs to test authentication, user profiles, event management, and registration endpoints directly from your browser.
  • Automated Tests: Run unit and integration tests for the backend:
    cd backend
    pytest

πŸ”’ Security & Best Practices

  • Password Hashing: Uses Argon2id algorithm for secure password hashing.
  • Session Tokens: HttpOnly, Secure, SameSite cookies prevent XSS and session hijacking.
  • CSRF Protection: Token-based validation on all state-changing endpoints.
  • Rate Limiting: Redis-backed sliding window rate limits on Auth endpoints.
  • Environment Isolation: Sensitive secrets (JWT/Session keys, DB credentials) are stored exclusively in .env and never committed to Git.

πŸ‘¨β€πŸ’» Developed By

Raghav Agarwal

Full Stack Developer
IIChE Student Chapter, BIT Mesra

Satyam Raj

Full Stack Developer
IIChE Student Chapter, BIT Mesra


πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


IIChE Student Chapter, BIT Mesra

Catalyzing Innovation β€’ Engineering Excellence β€’ Building the Future

Β© 2026 IIChE Student Chapter, BIT Mesra. All Rights Reserved.

About

IIChE CLUB WEBSITE

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages