Code Sphere Academy
A modern Next.js 15 application where users can browse, search, and purchase courses. Built with cutting-edge technologies like TypeScript, Tailwind CSS, Firebase, Nodemailer, Stripe, Swiper Slider, and Context API. and React 19 features, Server and Client Components, and SEO metadata support.
CodeSphere Academy ๐
A modern Next.js 15 application where users can browse, search, and purchase courses. Built with cutting-edge technologies like TypeScript, Tailwind CSS, Firebase, Nodemailer, Stripe, Swiper Slider, and Context API. and React 19 features, Server and Client Components, and SEO metadata support.
Features โจ
Browse Courses:
- List of curated courses with Swiper Slider for carousel navigation. ๐ก
- View course title, description, duration, and price. ๐
Search Courses:
- Search bar with filtering by title, category, or instructor. ๐
- Real-time updates using Client Components. โก
Add Courses to Cart:
- Cart functionality using Context API. ๐
- Cart persists across pages and sessions. ๐งฉ
Purchase Courses:
- Integrated with Stripe for secure checkout. ๐ณ
- Order confirmation via Nodemailer email. ๐ง
Authentication:
- Firebase-based login/signup. ๐
- Auth-protected routes and personalized dashboard. ๐ก๏ธ
Database:
- Store and retrieve data from Firebase Firestore. ๐๏ธ
- Sync course purchases and user profiles.
Responsive Design:
- Built with Tailwind CSS for a beautiful, responsive UI. ๐จ
Dark Theme:
- Toggle between dark/light mode. ๐๐
- Theme stored in local storage for session persistence. ๐พ
SEO and Metadata:
- Optimized with
generateMetadata()
in Next.js App Router for dynamic SEO. ๐ง
- Social previews, title tags, and descriptions are auto-generated. ๐
Server and Client Components:
- Modular architecture using Next.js Server and Client Components. ๐
- Heavy data logic and rendering moved to Server Components for better performance.
React 19 Features:
- Utilized
useOptimistic
for optimistic UI updates on checkout and course actions. โ๏ธ
useActionState
for form submissions and state handling without boilerplate. ๐งต
Tech Stack ๐ ๏ธ
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Backend Services: Firebase (Auth, Firestore)
- Payments: Stripe
- Emailing: Nodemailer
- State Management: Context API + React 19 Hooks
- SEO:
generateMetadata()
from Next.js
- Routing: App Directory Structure (Server/Client Components)
- UX Enhancements: Swiper Slider, Dark Mode