Skip to content

Darshan2095/MyPG

Repository files navigation

🏠 MyPG - Full-Stack PG Discovery & Management Platform

Next.js MongoDB NextAuth TailwindCSS Vercel

A robust discovery and property management platform designed to bridge the gap between students/professionals and PG owners. Built with a focus on Role-Based Access Control (RBAC) and seamless property searching.


🌐 Live Experience

🔗 View Live Demo | GitHub Repository


✨ Core Features

👤 For Renters (Users)

  • Location-Based Search: Filter PGs by City and specific popular areas.
  • Detailed Insights: View exhaustive PG details including dynamic image galleries, amenities, and specific gender-based permissions.
  • Direct Connect: Access owner contact details (Phone/Email) instantly.
  • Responsive Navigation: Optimized for finding housing on the go via mobile devices.

🏢 For Property Owners

  • Personalized Dashboard: A dedicated workspace to monitor listed properties.
  • Dynamic Property Listing: Intuitive multi-step forms to add PGs with pricing breakdown (Rent + Deposit).
  • Listing Management: View and edit "My PGs" through a sleek sidebar-driven interface.

🔐 Security & Auth

  • Role-Based System: Strict separation of User, Owner, and Admin routes using NextAuth.js.
  • Secure Sessions: JWT-based authentication for persistent and secure logins.

🛠️ Tech Stack

  • Frontend: Next.js (App Router), React, Tailwind CSS, Lucide Icons
  • Backend: Next.js API Routes (Serverless)
  • Database: MongoDB Atlas with Mongoose ODM
  • Auth: NextAuth.js (Credentials Provider)
  • Deployment: Vercel

📂 Architecture

app/
 ├── (user)/           # Public & Renter routes (Search, Details)
 ├── owner/            # Protected Owner routes (Dashboard, Add-PG)
 ├── admin/            # Administrative management (In-development)
 ├── api/              # Serverless backend endpoints
 ├── (auth)/           # Login & Registration logic
components/            # Shared UI: Navbar, Footer, OwnerSidebar
models/                # Mongoose Schema definitions
lib/                   # MongoDB connection singleton


# Developer

**Darshan Babariya** *Full-Stack Developer | VGEC Computer Engineering*

[LinkedIn](https://www.linkedin.com/in/darshanbabariya/) • [GitHub](https://github.com/Darshan2095) • [Email](mailto:darshanb2390@gmail.com)

---
*If you find this project helpful for your PG search or as a template, please give it a ⭐!*

About

MyPG is a modern, high-end web application designed to bridge the gap between students/working professionals and premium PG (Paying Guest) accommodations. Built with a focus on Minimalist Design, Performance, and User Experience, MyPG offers a seamless interface for finding verified homes away from home.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors