StayBnb is a full-stack MERN application that replicates Airbnb’s core functionality. Users can browse and book vacation rentals, manage their bookings, and add properties to a wishlist. The platform ensures seamless authentication, real-time booking validation, and a user-friendly experience.
🎯 Frontend: https://staybnb-omega.vercel.app/
🎯 Backend API: stay-bnb-wm93.onrender.com
| Frontend | Backend | Database | Auth | Deployment |
|---|---|---|---|---|
| React.js (Vite) | Node.js (Express) | MongoDB (Mongoose) | JWT + bcrypt.js | Vercel (Frontend) |
| Tailwind CSS | REST API | Mongoose ODM | Protected Routes | Render (Backend) |
✅ Browse & search properties
✅ View property details
✅ User authentication (Signup/Login)
✅ Secure JWT-based login
✅ Book properties & manage bookings
✅ Payment form simulation
✅ Booking history & user dashboard
✅ Mobile-friendly & responsive design
| Home Page | Property Details | Booking Page |
|---|---|---|
![]() |
||
git clone https://github.com/rambedade/Stay-Bnb
cd staybnbcd backend
npm install- Create a
.envfile in the backend folder:PORT=8080 MONGO_URI=your_mongodb_connection_string SECRET_KEY=your_jwt_secret - Start the server
npm start
cd frontend
npm install- Create a
.envfile in the frontend folder:VITE_API_BASE_URL=https://stay-bnb-wm93.onrender.com - Run the frontend
npm run dev
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/auth/signup |
Register a new user |
POST |
/api/auth/login |
Login a user |
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/properties |
Get all properties |
GET |
/api/properties/:id |
Get single property details |
GET |
/api/properties/search?query= |
Search properties |
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/bookings |
Create a new booking (Authenticated) |
GET |
/api/bookings/user |
Fetch user-specific bookings |
- Run
vercel login - Deploy:
vercel
- Push backend code to GitHub
- Create a Render service for Express
- Add environment variables for
MONGO_URI&SECRET_KEY - Deploy backend 🚀
👨💻 Want to improve StayBnb? Contributions are welcome!
- Fork the project
- Create a new branch (
feature/new-feature) - Commit changes (
git commit -m 'Added feature') - Push to GitHub & Create a PR
📄 This project is open-source and available under the MIT License.
📧 Email: rambedade2308@email.com
🚀 Made with ❤️ by [Ram]
