This is the backend server for Bashabari, a real estate platform developed using the MERN stack. The server provides RESTful APIs for handling authentication, property management, reviews, user roles, wishlist, offers, Stripe payments, and more.
🔗 https://bashabari-server.vercel.app
- Node.js
- Express.js
- MongoDB (Mongoose)
- Firebase Admin SDK
- Stripe Payments
- JWT Authentication
- CORS, Dotenv, and Middleware Utilities
- Email/password login with JWT token generation
- Firebase Admin SDK for verifying user identity
- Role-based middleware protection (
user,agent,admin)
- Agents can add, update, delete properties
- Admins can verify/reject properties
- Users can view verified properties only
- Support for advertised properties and fraud agent filtering
- Users can add properties to wishlist
- Offer system to bid within agent-defined price range
- Offers stored with
pending,accepted, orrejectedstatus
- Stripe integration for secure transactions
- Buyers can pay after offer approval
- Payment status and transaction ID stored in MongoDB
- Users can add, view, and delete reviews
- Admins can manage all reviews platform-wide
- Admins can promote users to
agentoradmin - Mark users as
fraud(agents only) - Fraud agents are restricted from adding new properties