A full-stack MERN (MongoDB, Express.js, React.js, Node.js) application that allows users to search, locate hotels, and make reservations.
Visit the deployed application at: Booking App
- User authentication and authorization
- Hotel search and filtering
- Room availability checking
- Secure payment processing
- Booking management
- Admin dashboard for hotel management
- Responsive design for all devices
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JWT
- Styling: CSS/SCSS
booking-app/
├── client/ # Frontend React application
├── api/ # Backend Node.js/Express server
├── admin/ # Admin dashboard
└── node_modules/ # Dependencies
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Clone the repository
git clone https://github.com/yourusername/booking-app.git
cd booking-app- Install dependencies
# Install backend dependencies
cd api
npm install
# Install frontend dependencies
cd ../client
npm install
# Install admin dashboard dependencies
cd ../admin
npm install- Set up environment variables
Create a
.envfile in the api directory with the following variables:
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
PORT=5000
- Start the application
# Start backend server
cd api
npm start
# Start frontend application
cd client
npm start
# Start admin dashboard
cd admin
npm startMake sure to set up the following environment variables:
MONGODB_URI: Your MongoDB connection stringJWT_SECRET: Secret key for JWT authenticationPORT: Server port (default: 5000)
Contributions are welcome! Please feel free to submit a Pull Request.
- Vishal Patel