Skip to content

TanmoyCodes/PG_CONNECT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏠 PGHunter.in – Complete Platform

Website React License: MIT

PGHunter.in is a modern PG accommodation discovery platform with an Admin Dashboard and Backend API.
It enables users to search, explore, and book PGs, while admins can seamlessly manage properties and listings.


πŸ“– About PGHunter.in

PGHunter.in was born from a simple idea:
πŸ‘‰ To make finding the perfect off-campus housing near LPU (Lovely Professional University) a seamless and stress-free experience.

We are a team of passionate professionals (and proud LPU alumni ✨) who know firsthand the challenges students face while searching for safe and comfortable accommodation.

Our platform connects students with verified, high-quality PGs and apartments, ensuring safety, comfort, and convenience.
We’re more than just a listing service β€” we’re your trusted partner in your academic journey.


🌟 What We Do

  • 🏠 Curated Listings β†’ Every property is vetted for safety, hygiene & amenities.
  • ⚑ Seamless Booking β†’ Filter, compare, and book with transparent pricing.
  • πŸŽ“ Student Support β†’ Ongoing help even after booking, including maintenance & community support.

🎯 Why Choose PGHunter?

βœ… 100% Verified Properties – No fake or misleading listings
βœ… Student-Centric Amenities – Wi-Fi, study zones, security, proximity to campus
βœ… Vibrant Community – Connect with fellow students through events & features
βœ… Transparent Pricing – No hidden charges, no surprises

πŸ“© Contact Us: contact.pghunter@gmail.com
πŸ“ž +91 97747 28561


πŸ‘¨β€πŸ‘©β€πŸ‘¦ Meet Our Team

  • Aditya Kumar – Founder & CEO
  • Tanmoy Debnath – Founder & CTO
  • Karanjeet Kumar – Founder & Head of Operations
  • Rohit Kumar – Backend Engineer
  • Aman Kumar – Marketing Director

✨ Features

πŸ‘€ User Features (PGHunter.in)

  • 🏑 Landing page showcasing PGHunter services
  • πŸ“‹ Browse PG listings with smart filters
  • πŸ” Quick search functionality
  • πŸ“– Detailed PG pages with pricing & amenities
  • πŸ“‘ About Us & Contact Us pages
  • πŸ” Modal-based authentication
  • 🎠 Slick Carousel-based interactive sliders
  • ⬆️ Auto scroll-to-top on navigation

πŸ”‘ Admin Features (pgAdmin)

  • πŸ” JWT + Cookie-based authentication
  • 🏠 Add, update, and manage PG listings
  • πŸ“Έ Upload multiple property images
  • ⭐ Mark PGs as featured, sold out, or unpublished
  • πŸ›  Manage amenities, house rules, contact info
  • 🎨 Responsive UI with TailwindCSS

⚑ Backend API Features (Node.js + Express)

  • πŸ‘€ JWT + Cookie-based authentication
  • 🏠 PG CRUD APIs
  • πŸ“© Contact Us form with Nodemailer integration
  • πŸ“‚ Secure file uploads via express-fileupload
  • πŸ”’ Role-based access (User & Admin)

πŸ›  Tech Stack

  • Frontend (PGHunter.in): React.js, CSS, Slick Carousel, React Router v6
  • Admin Dashboard (pgAdmin): React.js (Vite), TailwindCSS, Context API, Lucide Icons, Axios
  • Backend (API): Node.js, Express.js, MongoDB, JWT, Cookies, Nodemailer, express-fileupload

πŸ“‚ Project Structure

PGHunter/
│── frontend/ (PGHunter.in - User Website)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/   # Header, Footer, LoginModal, ScrollToTop
β”‚   β”‚   β”œβ”€β”€ pages/        # Homepage, Listings, PGDetails, About, ContactUs
β”‚   β”‚   β”œβ”€β”€ App.js
β”‚   β”‚   └── index.js
β”‚   └── public/

│── admin/ (pgAdmin - Admin Dashboard)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/   # PrivateRoute, HomeRedirect, TakeImage
β”‚   β”‚   β”œβ”€β”€ context/      # AuthContext
β”‚   β”‚   β”œβ”€β”€ pages/        # Dashboard, AddPG, Login, Signup
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚   └── public/

│── backend/ (pghunter-backend - API Server)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ config/       # database.js
β”‚   β”‚   β”œβ”€β”€ controllers/  # auth-controller.js, pg-controllers.js
β”‚   β”‚   β”œβ”€β”€ middlewares/  # auth-middleware.js
β”‚   β”‚   β”œβ”€β”€ routes/       # authRoutes.js, pgRoutes.js
β”‚   β”‚   └── utils/        # emailHelpers.js
β”‚   β”œβ”€β”€ server.js
β”‚   └── .env

└── README.md

⚑ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/your-username/pghunter.git
cd pghunter

🏑 Setup PGHunter Frontend (User Website)

cd frontend
npm install
npm start

Runs on β†’ http://localhost:3000/


πŸ› οΈ Setup pgAdmin (Admin Dashboard)

cd admin
npm install
npm run dev

Runs on β†’ http://localhost:5173/

Create .env in admin/:

VITE_API_BASE_URL=http://localhost:4000

βš™οΈ Setup Backend API

cd backend
npm install
npm run dev

Backend runs on β†’ http://localhost:4000/

Create .env in backend/:

PORT=4000
MONGODB_URI=your-mongodb-uri
JWT_SECRET=your-secret-key
EMAIL_USER=your-email@example.com
EMAIL_PASS=your-email-password

πŸ“‘ API Endpoints

πŸ”‘ Auth (/api/v1/auth)

  • POST /register β†’ Register user
  • POST /login β†’ Login & set cookie
  • GET /checkAdmin β†’ Verify admin

🏠 PG (/api/v1/pg)

  • POST /createpg β†’ Create new PG
  • GET /allpg β†’ Get all PGs
  • GET /admin/allpg β†’ Admin-only PGs
  • GET /byid/:id β†’ Get PG by ID
  • PATCH /update β†’ Update PG
  • POST /upload/img β†’ Upload images

πŸ“© Contact (/api/v1/contactus)

  • POST β†’ Send message (email notification)

πŸ“Έ Screenshots

🏑 Home Page

Home Page

⭐ Featured PGs

Featured Page

πŸ“‹ All PG Listings

All PGs

(Admin dashboard screenshots coming soon βœ…)


🌐 Deployment

  • Frontend & Admin β†’ Vercel / Netlify
  • Backend β†’ Render / Railway / AWS / DigitalOcean

Build before deployment:

npm run build

πŸ‘¨β€πŸ’» Authors


πŸ“œ License

This project is licensed under the MIT License.
Feel free to use, modify, and distribute with attribution.


Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages