Skip to content

jayalloyd/StayNest

Repository files navigation

🏠 StayNest

StayNest is a mini clone of Airbnb — a full-stack web application where users can browse, book, and list properties for short-term stays. Built using Node.js, Express.js, MongoDB, and EJS.

Output Demo:

staynest-demo.1.mp4

🚧 Project Status

This project is now finished. 🎉

⚡ Note: This project was built as part of the Apna College Delta Web Development Course. The main goal was to practice full-stack development concepts. I extended/customized some parts to improve my learning.

✨ Features

🧑 User registration & login

🏘 View all property listings

📝 Create, update, and delete listings (CRUD)

📸 Upload property images (via Multer)

🔒 Authentication & session management (via Passport.js)

🛠 Tech Stack

Frontend

HTML5 CSS3 Bootstrap EJS

Backend

NodeJS Express.js Passport.js

Database & Storage

MongoDB Mongoose

Project Document

🏠 StayNest.pdf

🏗️ System Architecture

graph LR
    subgraph Browser
        A[User/Client]
    end

    subgraph Node_Express_Server
        B[Routes] --> C[Middleware/Auth]
        C --> D[Controllers]
        D --> E[EJS Templates]
        E -->|Rendered HTML| A
    end

    subgraph Data_Storage
        D --> F[(MongoDB Atlas)]
        D --> G[Cloudinary - Images]
    end
Loading

📦 Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/jayalloyd/staynest.git cd staynest

2️⃣ Install dependencies

npm install

3️⃣ Setup environment variables Create a .env file in the root directory and add the following:

🔑 Environment Variables

To run this project, you will need to add the following variables to your .env file:

CLOUD_NAME, CLOUD_API_KEY, CLOUD_API_SECRET (Cloudinary)
DB_URL (MongoDB Connection string)
SECRET (For express-session)

MONGO_URI=your_mongo_connection_string SESSION_SECRET=your_secret_key PORT=8080

4️⃣ Run the application

nodemon app.js

5️⃣ Visit in browser

http://localhost:8080/listings

About

StayNest is a mini clone of Airbnb — a full-stack web application where users can browse, book, and list properties for short-term stays.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors