AhsanAyaz/code-with-ahsan
AhsanAyaz/code-with-ahsan has 27 GitHub stars and 54 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-14 09:45 UTC. Last push 2026-11-04.
What you can do
- Mentorship program — Apply to become a mentee, get matched with an accepted mentor
- Project collaboration — Submit open-source projects, recruit contributors, manage teams
- Learning roadmaps — Mentors publish structured learning paths; community members follow them
- Courses & content — MDX-based course posts, YouTube integration, and a blog
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A community platform for mentorship, open-source project collaboration, learning roadmaps, and courses — built by Ahsan Ayaz.
Web & AppsREADME.md
OriginalCodeWithAhsan
A community platform for mentorship, open-source project collaboration, learning roadmaps, and courses — built by Ahsan Ayaz.
Features
- Mentorship program — Apply to become a mentee, get matched with an accepted mentor
- Project collaboration — Submit open-source projects, recruit contributors, manage teams
- Learning roadmaps — Mentors publish structured learning paths; community members follow them
- Courses & content — MDX-based course posts, YouTube integration, and a blog
- Events / Promptathon — Live interactive events with presenter panels and winner display
- Discord integration — Automatic channel provisioning and role assignment on signup
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| UI | React 19, Tailwind CSS v4, DaisyUI |
| Language | TypeScript |
| Backend | Next.js API Routes (serverless) |
| Database | Firebase Firestore |
| Auth | Firebase Authentication |
| Storage | Firebase Storage |
| Testing | Vitest, @firebase/rules-unit-testing |
| Deployment | Vercel |
Local Development Setup
Prerequisites
- Node.js 18+ — nodejs.org
- npm (comes with Node.js)
- Firebase CLI —
npm install -g firebase-tools - Java Runtime (JRE) — required by Firebase emulators (download)
Steps
Clone the repository
git clone https://github.com/ahsanayaz/code-with-ahsan.git cd code-with-ahsanInstall dependencies
npm installSet up environment variables
cp .env.example .env.localFor local development with Firebase emulators, the default placeholder values in
.env.localare sufficient — you do not need real Firebase credentials. See.env.examplefor documentation on each variable.Start Firebase emulators
npm run emulatorsThis starts Auth (port 9099), Firestore (port 8080), and Storage (port 9199) under the local
demo-codewithahsanproject. The emulator UI is available at http://localhost:4000.Seed the emulator with sample data
In a new terminal:
npm run seedThis populates Firestore with sample users, mentorship profiles, projects, roadmaps, and an admin password (
admin). Re-running the command clears and re-seeds all data.Start the development server
npm run devThe app is now running at http://localhost:3000.
Available Scripts
| Script | Description |
|---|---|
npm run dev |
Start Next.js dev server with Turbopack |
npm run emulators |
Start Firebase emulators (Auth, Firestore, Storage) |
npm run seed |
Clear and re-seed emulator with sample data |
npm run seed:clear |
Clear all seed data without re-seeding |
npm run build |
Production build (also runs content prebuild and sitemap) |
npm start |
Start production server (after build) |
npm run lint |
Run ESLint |
npm test |
Run all Vitest unit tests |
npm run test:watch |
Run Vitest in watch mode |
npm run test:rules |
Run Firestore security rules tests against emulator |
Project Structure
src/
app/ # Next.js App Router — pages, layouts, API routes
components/ # Reusable React components
lib/ # Firebase client/admin init, utility libraries
services/ # Data access layer (Firestore queries, external APIs)
types/ # Shared TypeScript types and interfaces
scripts/ # Utility and maintenance scripts (tsx)
content/ # MDX course and blog content
firestore.rules # Firestore security rules
storage.rules # Storage security rules
firebase.json # Firebase project config (emulator ports, etc.)
Contributing
See CONTRIBUTING.md for the full contributor guide.
Quick summary:
- Fork the repo and create a branch from
main - Follow the local setup steps above
- Run
npm testandnpm run test:rulesbefore opening a PR - Open a pull request with a clear description
About the Author

I'm a Muslim, an author of 3 world-wide published books, a Google Developers Expert in AI & Angular, an international speaker, and a Software Architect. I create tech tutorials on YouTube and write articles at my blog https://blog.codewithahsan.dev.
License
This project does not currently have an open-source license. Please contact the author before reusing code commercially.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
459,119 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,842 starsreact/react
The library for web and native user interfaces.
252,598 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,526 stars