How veerendra-reddy-g/student-portal works
Project type and purpose
• This is a single-page front-end application built with Create React App.
• Purpose: a course-listing platform with user authentication (login/register), course browsing (home, courses, course detail), user profile & “My Courses” page.
File structure
• Top-level:
• public/ (static assets: index.html, manifest, robots.txt)
• src/ (application code)
• package.json, build tooling managed by CRA
• src/ hierarchy:
• index.js → renders the React application into public/index.html
• context/AppContext.js → React Context provider for global state (e.g., auth, user data, courses)
• components/ → UI building blocks, subdivided into:
– Auth (Login, Register)
– Common (Navbar, Header, Footer, Hero, Layout, CourseCard, CourseDetail, Profile)
• pages/ → route components: Home, Courses, MyCourses, NotFound
• App.js → root component, sets up Router, Context Provider, Layout wrapper
• Configuration/build scripts: CRA defaults (webpack, Babel under the hood), controlled via package.json
README for additional insights
• Standard CRA project; no backend code in repo, so API communication is external or mocked
Detail
• How pages import/use components
• Build pipeline (npm start/build) as a separate side-step