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.
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.
- π 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.
β
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
- Aditya Kumar β Founder & CEO
- Tanmoy Debnath β Founder & CTO
- Karanjeet Kumar β Founder & Head of Operations
- Rohit Kumar β Backend Engineer
- Aman Kumar β Marketing Director
- π‘ 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
- π 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
- π€ JWT + Cookie-based authentication
- π PG CRUD APIs
- π© Contact Us form with Nodemailer integration
- π Secure file uploads via express-fileupload
- π Role-based access (User & Admin)
- 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
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
git clone https://github.com/your-username/pghunter.git
cd pghuntercd frontend
npm install
npm startRuns on β http://localhost:3000/
cd admin
npm install
npm run devRuns on β http://localhost:5173/
Create .env in admin/:
VITE_API_BASE_URL=http://localhost:4000cd backend
npm install
npm run devBackend 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-passwordPOST /registerβ Register userPOST /loginβ Login & set cookieGET /checkAdminβ Verify admin
POST /createpgβ Create new PGGET /allpgβ Get all PGsGET /admin/allpgβ Admin-only PGsGET /byid/:idβ Get PG by IDPATCH /updateβ Update PGPOST /upload/imgβ Upload images
POSTβ Send message (email notification)
(Admin dashboard screenshots coming soon β )
- Frontend & Admin β Vercel / Netlify
- Backend β Render / Railway / AWS / DigitalOcean
Build before deployment:
npm run build-
Tanmoy Debnath
π§ [your-email@example.com]
π Portfolio / LinkedIn -
Rohit Kumar
π§ rohitranjanrrsingh@gmail.com
π Portfolio / LinkedIn
This project is licensed under the MIT License.
Feel free to use, modify, and distribute with attribution.


