How sunil9813/education-website-using-reactjs works
Project type and purpose
• This is a single‑page, front‑end ReactJS “Education Website” (no backend services in this repo).
• It provides public pages (Home, About, Courses, Blog, Pricing, Team, Contact) built entirely with React components and static data.
File structure
• Top‑level artifacts:
• package.json / package-lock.json → NPM configuration, build scripts
• public/ → Static HTML template (public/index.html) and assets (images)
• src/ → React application code, divided into components by feature (about, allcourses, blog, common, contact, home, pricing, team) + dummydata.js + index.js + App.js
• Each feature folder follows a pattern: a root page component (e.g., About.jsx) plus sub‑components (cards, wrappers) and CSS styles.
• No server or API directories—data is served from dummydata.js and static assets.
README for additional insights
• Hosted on Netlify (static site deployment)
• A demo URL and a YouTube walkthrough—no mention of backend services or dynamic APIs.
• All content (text, images) loaded as static assets or via dummydata.js.
a. Main components
• End User (Browser)
• CDN / Static Host (Netlify)
• React SPA (App.js, component tree)
– Presentation Layer (Header, Footer, Routing)
– Page Modules (Home, About, Courses, Blog, Pricing, Team, Contact)
– Shared Components (Heading, Back button, Cards)
• Data Layer (dummydata.js, public/images)
• Build & Deployment (Node.js/npm → Webpack or Create‑React‑App build → Netlify)
• External Services (YouTube embed, Analytics if used)
b. Relationships & interactions
• The Browser requests index.html from the CDN
• Static JS/CSS bundles load into the browser → React hydrates the SPA
• Routing logic (React Router) switches components on URL change
• Components read static data from dummydata.js or fetch images from public/images
• Embedded external content (YouTube iframe) interacts with third‑party endpoints
c. Architectural patterns & design principles
• Component‑based UI decomposition (feature folders)
• Single‑page Application (SPA) with client‑side routing
• Separation of concerns: presentational components vs. data module
• Static site deployment pipeline (CI/CD → build → deploy on Netlify)
d. Key technologies/frameworks
• ReactJS (function components, JSX)
• React Router (implicit in App.js for navigation)
• CSS modules / plain CSS files per component
• npm / Node.js build scripts
• Netlify for hosting & CDN