Skip to content

A modern platform that helps students and working professionals quickly discover nearby hostels and PG accommodations

Notifications You must be signed in to change notification settings

devanshkansagra/FindPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

31 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FindPG : Find Your Perfect Hostel or PG Nearby!

A modern platform that helps students and working professionals quickly discover nearby hostels and PG accommodations. Users can search, filter, and compare PGs based on location, price, and amenities.

๐Ÿ“œ Features

Authentication and Authorization:

  • Secure login and signup using JWT authentication and Bcrypt.js for password hashing.
  • Two roles: Tenant and Agent.

Tenant Functionality:

  • Search PGs/Hostels by location, budget, and amenities.
  • Apply filters (e.g., price range, single/double occupancy, food included).
  • Save favorite PGs for quick access.
  • Book visits or contact property owners directly.
  • Update profile details.

Agent Functionality:

  • Add, update, or remove PG listings.
  • Upload images, set rent, facilities, and availability.
  • Manage tenant requests and inquiries.
  • Track occupancy and bookings.

General Features:

  • Mobile-friendly responsive design.
  • Interactive maps integration for nearby PG search.
  • Secure profile management for both tenants and agents.
  • Interactive In-App Notification system

๐Ÿ› ๏ธ Tech Stack

Client:

  • React
  • Tailwind CSS
  • Socket.io

Server:

  • Node.js
  • Express
  • Socket.io
  • Redis

Database & Storage:

  • MongoDB
  • AWS S3 Bucket

โš™๏ธ Installation

  1. Clone the repository:

    git clone https://github.com/devanshkansagra/FindPG.git
  2. Go to backend and run

    cd backend
    npm install
  3. Go to frontend and run

    cd frontend
    npm install
  4. Setup .env file

    • Backend
    ORIGIN=http://localhost:5173 # (or your frontend deployment url)
    SERVER=http://localhost:4000 # (or your backend deployment url)
    MONGDB_URI="mongodb://localhost:27017/FindPG"  # (or MongDB Atlas URL)
    ACCESS_TOKEN_SECRET= 
    ACCESS_TOKEN_EXPIRY=3599s
    REFRESH_TOKEN_SECRET=
    REFRESH_TOKEN_EXPIRY=7d
    AWS_BUCKET_NAME=
    AWS_BUCKET_REGION=
    AWS_ACCESS_KEY=
    AWS_SECRET_ACCESS_KEY=
    GMAIL_USER=
    GMAIL_APP_PASSWORD=
    REDIS_URL=redis://127.0.0.1:6379 # (or your redis deployment url)
    • Frontend
       VITE_SERVER_ORIGIN=http://localhost:4000
  5. To Run Project

    cd frontend
    npm start run 
    
    cd backend
    npm run dev

Install Redis through Docker

  • If you do not have Redis installed on your system. Try installing it with a Docker container
  • To install run this command
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest

๐Ÿค Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -m "Added new feature")
  4. Push to the branch (git push origin feature-branch)
  5. Open a Pull Request

Made by: Devansh Kansagra - dkansagra04@gmail.com

About

A modern platform that helps students and working professionals quickly discover nearby hostels and PG accommodations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages