Skip to content

About

Stayvia – A full-stack Airbnb-inspired web application with secure authentication, cloud image storage, and MongoDB.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🏡 Stayvia – Full-Stack Airbnb Clone

A full-stack Airbnb-inspired web application that allows users to discover, create, review, and manage property listings. Built using the MERN ecosystem with secure authentication, cloud image storage, and an interactive map interface.


🚀 Live Demo

🔗 Website: https://stayvia-taha.onrender.com/listings


✨ Features

  • 🔐 User Authentication (Sign Up / Login / Logout)
  • 🏡 Create, Edit & Delete Listings
  • 📸 Upload Property Images using Cloudinary
  • ⭐ Add & Delete Reviews
  • 🛡️ Authorization & Protected Routes
  • 📱 Fully Responsive Design
  • 💾 MongoDB Atlas Database
  • ⚡ Server-Side Rendering with EJS

🚀 Tech Stack

  • Frontend: HTML5, CSS3, Bootstrap, JavaScript, EJS
  • Backend: Node.js, Express.js
  • Database: MongoDB Atlas, Mongoose
  • Authentication: Passport.js, Passport Local
  • Image Storage: Cloudinary, Multer
  • Session Management: Express Session, Connect Mongo
  • Deployment: Render
  • Version Control: Git & GitHub

📁 Project Structure

AIRBNB_CLONE/
├── controllers/
│   ├── listing.js
│   ├── reviews.js
│   └── user.js
│
├── init/
│   ├── data.js
│   └── index.js
│
├── models/
│   ├── listing.js
│   ├── review.js
│   └── user.js
│
├── node_modules/
│
├── public/
│   ├── css/
│   │   ├── rating.css
│   │   └── style.css
│   └── js/
│       └── script.js
│
├── routes/
│   ├── listing.js
│   ├── review.js
│   └── user.js
│
├── utils/
│   ├── ExpressError.js
│   └── wrapAsync.js
│
├── views/
│   ├── includes/
│   │   ├── flash.ejs
│   │   ├── footer.ejs
│   │   └── navbar.ejs
│   │
│   ├── layouts/
│   │   └── boilerplate.ejs
│   │
│   ├── listings/
│   │   ├── edit.ejs
│   │   ├── index.ejs
│   │   ├── new.ejs
│   │   └── show.ejs
│   │
│   ├── users/
│   │   ├── login.ejs
│   │   └── signup.ejs
│   │
│   └── error.ejs
│
├── .env
├── .gitignore
├── app.js
├── cloudConfig.js
├── middleware.js
├── schema.js
├── package.json
└── package-lock.json

⚙️ Installation

Clone the Repository

git clone https://github.com/Taha254511/Airbnb_Clone.git

Navigate to the Project

cd airbnb_clone

Install Dependencies

npm install

Create a .env File

ATLASDB_URL=your_mongodb_connection_string

CLOUD_NAME=your_cloudinary_cloud_name
CLOUD_API_KEY=your_cloudinary_api_key
CLOUD_API_SECRET=your_cloudinary_api_secret

SECRET=your_session_secret

Run the Project

node app.js

Visit:

http://localhost:3000/listings

🔮 Future Improvements

  • ❤️ Wishlist Feature
  • 💳 Payment Integration
  • 📅 Booking System
  • 🔍 Advanced Search & Filters
  • 👤 User Profiles
  • 📧 Email Notifications
  • 📊 Admin Dashboard

👨‍💻 Author

Taha Hussain

About

Stayvia – A full-stack Airbnb-inspired web application with secure authentication, cloud image storage, and MongoDB.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages