Skip to content

DavidMarom/mefargenim

Repository files navigation

Mefargenim β€” Israel's Local Business Directory

A full-stack, production web application for discovering and managing local businesses across Israel.

Live: mefargenim.biz


Overview

Mefargenim is a full-stack business directory platform built with Next.js 16 (App Router). It allows business owners to list and manage their presence online, while users can browse, search, and interact with local businesses through a fast, SEO-optimized interface.

Tech Stack

Layer Technology
Framework Next.js 16 (App Router, SSR/SSG)
UI React 19, TypeScript
Database MongoDB
Auth & Storage Firebase
Server State TanStack Query v5
Client State Zustand
SEO next-sitemap

Features

  • Business Listings β€” Browse and search local businesses with dedicated listing pages
  • Owner Dashboard β€” Business owners can create and manage their listing
  • Authentication β€” Google OAuth via Firebase
  • Like System β€” Optimistic UI updates with persistent like tracking
  • Admin Panel β€” Internal tools for managing listings, including CSV import/export
  • Blog β€” Content section with landing-page and tips articles
  • REST API β€” Next.js Route Handlers for businesses, users, likes, and email
  • SEO β€” Auto-generated sitemap on every build via next-sitemap

Project Structure

src/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/           # Route Handlers (biz, users, likes, email, sitemap)
β”‚   β”œβ”€β”€ business/      # Business listing pages
β”‚   β”œβ”€β”€ dashboard/     # Owner dashboard
β”‚   β”œβ”€β”€ my-business/   # Business management
β”‚   β”œβ”€β”€ blog/          # Blog articles
β”‚   └── admin123/      # Admin panel
β”œβ”€β”€ components/        # Shared UI components (BizCard, Navbar, Footer, ...)
β”œβ”€β”€ hooks/             # TanStack Query hooks (useBusiness, useBusinesses, ...)
β”œβ”€β”€ services/          # Data access layer (MongoDB, Firebase, likes, users)
β”œβ”€β”€ store/             # Zustand stores (userStore, likesStore)
└── providers/         # React context providers

Getting Started

# Install dependencies
npm install

# Run dev server
npm run dev

# Build for production
npm run build

Environment Variables

Create a .env.local file with:

MONGODB_URI=
FIREBASE_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MESSAGING_SENDER_ID=
FIREBASE_APP_ID=

Developed by David Marom Β· 2026 Β· stealthCode.co

About

πŸ‘« Mefargenim social network

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors