How kishanwebdev/jkss-website works
Project type and purpose
• This is a front-end Single Page Application (SPA) built with React + Vite + Tailwind CSS.
• It serves as the UI for an educational institute: public pages (Home, About, Courses, Contact, Gallery, Blog), plus protected Admin and Student portals with course management and payment integration (Razorpay).
File structure
• Top-level:
• index.html + public/ → static assets & entry HTML
• vite.config.js, postcss.config.js, tailwind.config.js → build/tooling configs
• package.json → project dependencies (React, Vite, ESLint, Tailwind, Razorpay JS SDK)
• src/
• main.jsx → React entry point, HMR setup
• App.jsx → root component, client-side router
• src/pages/ → route targets (Home, About, CoursePage, Contact, InstituteGallery, AdminDashboard, StudentDashboard, NotFound, plus “/admin” and “/student” layouts)
• src/Components/ → reusable UI (Header, Footer, Hero, Gallery, BlogSection, Testimonials, ContactForm, CourseDetails, CourseManagement, StudentPortal, AdminGalleryManager, RazorpayPayment, Login)
README
• Minimal React + Vite template with support for Fast Refresh via Babel or SWC.
• No built-in backend; all dynamic data comes via 3rd-party APIs you integrate.
a. Main components
• Static Hosting (e.g., Netlify, Vercel, S3/CloudFront)
• Browser/Client
• React App
– Entry & Bundler (Vite + HMR)
– Router → Pages
– Shared Components
– Styling Pipeline (Tailwind CSS via PostCSS)
• External Services
– Auth API (login, sessions/JWT)
– Course Management API (CRUD courses)
– Student Data API
– Gallery Storage Service (e.g., S3 or custom CDN)
– Payment Gateway (Razorpay)
b. Relationships & interactions
• Browser ▸ (GET) index.html + JS bundles from Static Host
• React Router ▸ Page components
• Components (CourseManagement, StudentPortal, ContactForm, RazorpayPayment, AdminGalleryManager) ▸ REST/GraphQL calls to respective APIs
• RazorpayPayment ↔ Razorpay Gateway for checkout flow
c. Architectural patterns & principles
• Component-based UI decomposition
• Client-side routing (SPA)
• Separation of “pages” vs. “reusable components”
• Tooling pipeline (Vite bundler + PostCSS + Tailwind)
• Decoupling of UI and backend via well-defined API contracts
d. Key technologies/frameworks
• React for UI, React Router (implied) for navigation
• Vite for fast builds & HMR
• Tailwind CSS for utility-first styling
• Razorpay JS SDK for payments
• ESLint for linting, PostCSS for CSS processing