Skip to content

LearnHub is a fully functional ed-tech platform that enables users to create, consume, and rate educational content. The platform is built using the MERN stack, which includes ReactJS, NodeJS, MongoDB, and ExpressJS.

License

Notifications You must be signed in to change notification settings

BoddepallyVenkatesh06/LearnHub-E-Learning-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project Description πŸ“

LearnHub is a fully functional ed-tech platform that enables users to create, consume, and rate educational content.
The platform is built using the MERN stack, which includes ReactJS, NodeJS, MongoDB, and ExpressJS.

Live link πŸŒπŸ“‘ - [ https://learnhub-opju.vercel.app/ ]


Table of Contents

Section Description
LearnHub πŸ“š Overview of LearnHub goals
Tech Stack πŸ’»πŸ”§ Technologies used in the project
System Architecture 🏰 Overview of the system architecture
Architecture Diagram πŸ—οΈ Diagram illustrating the architecture
Schema πŸ—‚ Explanation of data schemas used
React Hooks 🎣 Overview of React Hooks utilized
React Library βš›οΈπŸ“š Overview of React Libraries used
Screen Preview πŸ–₯️ Screen Preview

LearnHub Aim πŸ“š


1️⃣ A seamless and interactive learning experience for students, making education more accessible and engaging.
2️⃣ A platform for instructors to showcase their expertise and connect with learners across the globe.


Tech Stack πŸ’»πŸ”§

Frontend 🎨 :

Backend βš™οΈ :

Database πŸ›’οΈ :

Cloudinary Integration ☁️


System Architecture 🏰


☝ The LearnHub ed-tech platform consists of three main components:
The front end, the back end, and the database. The platform follows a client-server architecture, with the front end serving as the client and the back end and database serving as the server.

🎨 Front-end
The front end of the platform is built using ReactJS, which is a popular JavaScript library for building user interfaces. ReactJS allows for the creation of dynamic and responsive user interfaces also Loading Skeleton, which are critical for providing an engaging learning experience to the students. The front end communicates with the back end using RESTful API calls.

βš™οΈ Back-end
The back end of the platform is built using NodeJS and ExpressJS, which are popular frameworks for building scalable and robust server-side applications. The back end provides APIs for the front end to consume, which include functionalities such as user authentication, course creation, and course consumption. The back end also handles the logic for processing and storing the course content and user data.

πŸ›’οΈ Database
The database for the platform is built using MongoDB, which is a NoSQL database that provides a flexible and scalable data storage solution. MongoDB allows for the storage of unstructured and semi-structured data, which is useful for storing course content such as videos, images, and PDFs. The database stores the course content, user data, and other relevant information related to the platform.

Architecture Diagram πŸ—οΈ


Here is a high-level diagram that illustrates the architecture of the LearnHub ed-tech platform:


The front end of LearnHub has all the necessary pages that an ed-tech platform should have. Some of these pages are:

For Students:

  • Homepage 🏠: A brief introduction to the platform with links to the course list user details and a random background.
  • Course List πŸ“š: A list of all the courses available on the platform, along with their descriptions and ratings.
  • Wishlist πŸ’‘: Displays all the courses that a student has added to their wishlist.
  • Cart Checkout πŸ›’ : Allows the user to complete course purchases.
  • Course Content πŸŽ“: Presents the course content for a particular course, including videos and related material.
  • User Details πŸ‘€: Provides details about the student's account, including their name, email, and other relevant information.
  • User Edit Details ✏️: Allows students to edit their account details.

For Instructors:

  • Dashboard πŸ“Š: Offers an overview of the instructor's courses, along with ratings and feedback for each course.
  • Insights πŸ“ˆ: Provides detailed insights into the instructor's courses, including the number of views, clicks, and other relevant metrics.
  • Course Management Pages πŸ› οΈ: Enables instructors to create, update, and delete courses, as well as manage course content and pricing.
  • View and Edit Profile Details πŸ‘€: Allows instructors to view and edit their account details.

Back-end βš™οΈ

The back-end of the platform is built using NodeJS and ExpressJS, providing APIs for the front-end to consume. These APIs include functionalities such as user authentication, course creation, and course consumption. The back-end also handles the logic for processing and storing the course content and user data.

Back-end Features

  • User Authentication and Authorization πŸ”: Students and instructors can sign up and log in to the platform using their email addresses and passwords. The platform also supports OTP (One-Time Password) verification and forgot password functionality for added security.
  • Course Management πŸ› οΈ: Instructors can create, read, update, and delete courses, as well as manage course content and media. Students can view and rate courses.
  • Payment Integration πŸ’³: Students will purchase and enroll in courses by completing the checkout flow, followed by Razorpay integration for payment handling.
  • Cloud-based Media Management ☁️ : StudyNotion uses Cloudinary, a cloud-based media management service, to store and manage all media content, including images, videos, and documents.
  • Markdown Formatting ✍️: Course content in document format is stored in Markdown format, allowing for easier display and rendering on the front-end.

Data Models and Database Schema

The back-end of StudyNotion uses several data models and database schemas to manage data, including:

  • Student Schema πŸ§‘β€πŸŽ“: Includes fields such as name, email, password, and course details for each student.
  • Instructor Schema πŸ‘©β€πŸ«: Includes fields such as name, email, password, and course details for each instructor.
  • Course Schema πŸ“š: Includes fields such as course name, description, instructor details, and media content.

Database πŸ›’οΈ

The database for the platform is built using MongoDB, a NoSQL database that provides a flexible and scalable data storage solution. MongoDB allows for the storage of unstructured and semi-structured data. The database stores the course content, user data, and other relevant information related to the platform.

Schema πŸ“‹


React Hooks 🎣

Utilized several React hooks for efficient state management and dynamic behavior:

  • useState
  • useEffect
  • useDispatch
  • useParams
  • useSelector
  • useLocation
  • useNavigate
  • useRef
  • useForm
  • useDropzone
  • Custom-Hook

πŸ“š React Library:

  • πŸš€ Lazy Loading: Enhance performance by lazily loading images using the react-lazy-load-image library.
  • πŸ“Š Chart.js: Versatile charting library for creating interactive and visually appealing charts.
  • 🎭Framer Motion: Animation library for React, providing smooth and expressive motion.
  • πŸ“ React Dropzone: Drag-and-drop file uploader for React applications.
  • 🍞 React Hot Toast: Elegant and customizable toast notifications for React applications.
  • πŸ”’ React OTP Input: Input component for one-time password entry in React forms.
  • πŸ“Š React Super Responsive Table: Highly responsive and feature-rich table component for React.
  • πŸ”„ Swiper: Modern touch slider for mobile and desktop browsers.
  • πŸ–‹οΈ React Type Animation: Simple and configurable typing animation component for React.
  • πŸŽ₯ Video React: React-based video player for building rich multimedia experiences in web applications.

API Design

The StudyNotion platform's API is designed following the REST architectural style. The API is implemented using Node.js and Express.js. It uses JSON for data exchange and follows standard HTTP request methods such as GET, POST, PUT, and DELETE. Sample list of API endpoints and their functionalities:

  1. /api/auth/signup (POST) - Create a new user (student or instructor) account.
  2. /api/auth/login (POST) – Log in using existing credentials and generate a JWT token.
  3. /api/auth/verify-otp (POST) - Verify the OTP sent to the user's registered email.
  4. /api/auth/forgot-password (POST) - Send an email with a password reset link to the registered email.
  5. /api/courses (GET) - Get a list of all available courses.
  6. /api/courses/:id (GET) - Get details of a specific course by ID.
  7. /api/courses (POST) - Create a new course.
  8. /api/courses/:id (PUT) - Update an existing course by ID.
  9. /api/courses/:id (DELETE) - Delete a course by ID.
  10. /api/courses/:id/rate (POST) - Add a rating (out of 5) to a course. Sample API requests and responses:
  11. GET /api/courses: Get all courses
    • Response: A list of all courses in the database
  12. GET /api/courses/:id: Get a single course by ID
    • Response: The course with the specified ID
  13. POST /api/courses: Create a new course
    • Request: The course details in the request body
    • Response: The newly created course
  14. PUT /api/courses/:id: Update an existing course by ID
    • Request: The updated course details in the request body
    • Response: The updated course
  15. DELETE /api/courses/:id: Delete a course by ID
    • Response: A success message indicating that the course has been deleted.

πŸ–₯️ Screen Preview :

Home Page Background 🏠

About Page

Contact Page

Ai Content Page

Footer

404 Page

About

LearnHub is a fully functional ed-tech platform that enables users to create, consume, and rate educational content. The platform is built using the MERN stack, which includes ReactJS, NodeJS, MongoDB, and ExpressJS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages