Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

408 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Vite Logo

๐ŸŽ“ H-One Academy

A modern, responsive, and feature-rich online learning platform
Built with React, TypeScript, Vite & TailwindCSS

A full-featured e-learning platform with complete user panel, course management, articles, reservations, likes, ratings, and profile management.

React TypeScript Vite TailwindCSS React Router Axios Formik Yup Jotai Zustand Material UI DaisyUI Swiper ApexCharts Vercel

Live Demo


๐ŸŒŸ About The Project

H-One Academy is a complete online learning platform designed and developed to deliver a smooth, modern, and practical learning experience. This project includes:

  • ๐ŸŽฏ Professional landing page with course & article sliders
  • ๐Ÿ“š Course listing with filtering, search, pagination, and sorting
  • ๐Ÿ“ฐ News & articles with rating and comment system
  • ๐Ÿ‘ค Complete user panel with profile management
  • ๐Ÿ” Multi-step authentication system (Register / Login / Forget Password)
  • ๐ŸŒ— Dark / Light / System theme support
  • ๐Ÿ“ฑ Fully responsive and optimized for mobile & desktop
  • ๐Ÿ‡ฎ๐Ÿ‡ท Full RTL support and Persian language

๐Ÿš€ Live Demo

๐Ÿ”— https://behshahr.vercel.app


โœจ Key Features

๐Ÿ  Landing Page

  • Hero slider
  • Academy services
  • Statistics section
  • Educational categories
  • Courses & articles sliders
  • Instructors section
  • Suggestions & feedback form
  • Contact us form

๐Ÿ“š Courses

  • Responsive grid layout
  • Filter by technology, level, type, price
  • Fast search
  • Advanced pagination
  • Course details page
  • Like / Dislike / Rating
  • Course reservation
  • Comments section with submission

๐Ÿ“ฐ Articles

  • Responsive grid
  • Filtering and search
  • Rating and likes
  • Article details page
  • Comment system

๐Ÿ‘ค User Panel

  • ๐Ÿ“Š Statistical dashboard with charts
  • ๐Ÿ‘ฅ Full profile editing
  • ๐Ÿ–ผ๏ธ Upload / select / delete profile images (Slider gallery)
  • ๐Ÿ“– My Courses
  • ๐ŸŽซ Reserved Courses
  • โค๏ธ Favorite Courses
  • ๐Ÿ’ฌ My Comments

๐Ÿ” Authentication

  • Login with email or phone number
  • 3-step registration:
    1. Submit email + phone number
    2. Verify sent code
    3. Set password
  • Password recovery via email link
  • Protected Routes for user panel

๐ŸŽจ UI/UX

  • Light / Dark / System theme
  • Smooth animations
  • Loading skeletons
  • Toast notifications
  • Beautiful modals
  • Fully RTL

๐Ÿ› ๏ธ Tech Stack

Category Technology
Framework React 18 + TypeScript
Build Tool Vite
Styling Tailwind CSS + DaisyUI
UI Components Material UI (MUI)
State Management Jotai + Zustand
Routing React Router v6
HTTP Client Axios
Forms Formik + Yup
Charts ApexCharts
Sliders Swiper.js
Icons React Icons
Notifications React Toastify
Date Jalali Moment + React Multi Date Picker
Deployment Vercel

๐Ÿ“ Project Structure

BEHSHAHR/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ Auth/
โ”‚   โ”‚   โ”œโ”€โ”€ ArticlesDetails/
โ”‚   โ”‚   โ”œโ”€โ”€ CoursesDetails/
โ”‚   โ”‚   โ”œโ”€โ”€ CoursesList/
โ”‚   โ”‚   โ”œโ”€โ”€ ForgetPasswordForm/
โ”‚   โ”‚   โ”œโ”€โ”€ Landing/
โ”‚   โ”‚   โ”œโ”€โ”€ NewsArticles/
โ”‚   โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ””โ”€โ”€ NotFound/
โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ”œโ”€โ”€ jotai/
โ”‚   โ”‚   โ””โ”€โ”€ zustand/
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ””โ”€โ”€ provider/
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”œโ”€โ”€ screens/
โ”‚   โ”‚   โ””โ”€โ”€ layout/
โ”‚   โ”œโ”€โ”€ types/
โ”‚   โ”œโ”€โ”€ userpanel/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BasicTables/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ dropdown/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ header/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ UserProfile/
โ”‚   โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ AppHeader.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ AppLayout.tsx
โ”‚   โ”‚   โ””โ”€โ”€ AppSidebar.tsx
โ”‚   โ”œโ”€โ”€ main.tsx
โ”‚   โ””โ”€โ”€ index.css
โ”œโ”€โ”€ .env.local
โ”œโ”€โ”€ vercel.json
โ”œโ”€โ”€ tailwind.config.js
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ vite.config.ts

โš™๏ธ Installation & Setup

Prerequisites

  • Node.js >= 18
  • npm or yarn

Steps

1. Clone the repository

git clone https://github.com/AbbasRostami/H-One.git
cd H-One

2. Install dependencies

npm install

3. Create env file Create a .env.local file in the project root:

VITE_BASE_URL=Base-URL

4. Run in development mode

npm run dev

5. Build for production

npm run build

6. Preview the build

npm run preview

๐ŸŒ Deployment on Vercel

The project uses Vercel Rewrites to handle Mixed Content issues:

{
  "rewrites": [
    {
      "source": "/api/:path*",
      "destination": "baseURL/:path*"
    },
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

In production, API requests go to /api/* and Vercel proxies them to the backend server, resolving HTTPS โ†’ HTTP mixed content restrictions.


๐ŸŽฏ Roadmap

  • Landing page design & implementation
  • Complete authentication system
  • Course listing with filters & pagination
  • Article listing with filters & pagination
  • User panel
  • Dark mode support
  • Deployment on Vercel
  • Add unit tests with Vitest
  • SEO optimization
  • PWA support
  • i18n for English language

๐Ÿค Contributing

Contributions are welcome! If you find a bug or have a suggestion:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ‘จโ€๐Ÿ’ป Developer

Abbas Rostami

GitHub


๐Ÿ“„ License

This project is licensed under the MIT License.


โญ If this project helped you, please give it a star!

Made with โค๏ธ by Abbas Rostami

About

๐ŸŽ“ H-One Academy - Modern online learning platform | React + TypeScript + TailwindCSS | Full user panel, courses, articles, authentication, RTL & Dark Mode support

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages