How rahulraj22/tedxiitgandhinagar works
Project type and purpose
• From the file tree and README, this is a monolithic event-site built with static HTML, CSS, JS plus PHP server-side scripts. It serves as the official TEDxIITGandhinagar website and includes an online registration flow integrated with a payment gateway.
File structure
• Top-level artifacts:
• .html and .php pages at root – entry points (index.html, index.php, registeration.html, schedule.html, etc.)
• db.php – database connection logic
• payment_process.php – payment gateway integration
• thank_you.php – post-payment confirmation
• package.json / package-lock.json – suggests use of Node for build or tooling (maybe for bundling assets)
Readme insights
• Confirms “official website” with “payment gateway for online registration.”
Main components
a. Client browser (web & mobile users)
b. Web server (Apache / PHP runtime) hosting:
• Static asset server (serving CSS, JS, images)
• PHP application layer (db.php, payment_process.php, page templates)
c. Relational database (MySQL or similar) accessed via db.php
d. External payment gateway (third-party API)
e. Hosting environment (000webhostapp.com or your chosen IaaS)
Relationships and interactions
1. Client → HTTP GET /index.html (or .php) → Web server serves static/templated page
2. Client fills registration form → HTTP POST → payment_process.php
3. payment_process.php:
• calls db.php to record preliminary registration
• issues API call to payment gateway
• upon callback, updates DB and redirects to thank_you.php
4. Client gets confirmation page
5. All static assets loaded via same server or CDN
Architectural patterns & design principles
• Monolith MVC-lite:
• “V” = .html/.php pages
• “C” = payment_process.php, form handlers
• “M” = MySQL abstraction in db.php
• Clear separation of static assets vs. dynamic endpoints
• External integration point: payment API
Technologies & frameworks to annotate
• Frontend: HTML5, CSS3, vanilla JS
• Backend: PHP 7+, Apache/Nginx
• Database: MySQL / MariaDB
• Payment Gateway: (e.g., Stripe/PayPal – specify whichever)
• Hosting: 000webhostapp or similar shared host