Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

105 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–οΈ Resort Reservation System

GitHub stars GitHub forks GitHub license

A modern full-stack Resort Reservation Management System built using the MERN ecosystem. The platform allows guests to browse cottages, check availability, make reservations, and receive booking confirmations while providing administrators with complete management tools.


πŸ“– Overview

The Resort Reservation System is designed to simplify resort booking operations by providing an intuitive interface for guests and a powerful administration dashboard for resort staff.

Key Goals

  • Simplify cottage reservations
  • Prevent double-bookings
  • Improve customer experience
  • Automate reservation management
  • Provide real-time availability checking

🌐 Live Demo

πŸ”— View Live Demo

Note: The demo is hosted on [Vercel/Render] and may take a moment to load if the server is inactive.


✨ Features

πŸ‘₯ User Features

  • User Registration
  • Secure Login System
  • OTP Email Verification
  • Browse Available Cottages
  • Search & Filter Cottages
  • View Cottage Details
  • Calendar-Based Reservation
  • Reservation History
  • Booking Confirmation Emails
  • Mobile Responsive Design

πŸ‘¨β€πŸ’Ό Admin Features

  • Admin Dashboard
  • Cottage Management (CRUD)
  • Reservation Management
  • User Management
  • Calendar Reservation View
  • Image Upload Management
  • Booking Status Updates

πŸ”’ Security Features

  • JWT Authentication
  • Role-Based Authorization
  • Protected Routes
  • Email OTP Verification
  • Rate Limiting
  • Input Validation
  • Secure Cookies
  • File Upload Validation

πŸ›  Tech Stack

Frontend

Technology Purpose
React.js Frontend UI
Vite Build Tool
React Router Routing
Axios API Requests
React Hot Toast Notifications
React Loading Skeleton Loading States
Tailwind CSS Styling

Backend

Technology Purpose
Node.js Runtime
Express.js API Server
MongoDB Database
Passport.js Authentication
JWT Authorization
Nodemailer Email Service
Multer File Upload
Cookie Parser Cookie Management
CORS Cross-Origin Requests

Database

  • MongoDB Atlas

πŸ“Έ Screenshots

User Dashboard

Home Page alt text alt text alt text alt text Accommodation Page alt text alt text About Page alt text

Admin Dashboard

Cottages Page cottages add_cottage Reservation Page reservation Calendar Page calendar calendar1


πŸ“‚ Project Structure

Resort_Reservation
β”‚
β”œβ”€β”€ backend
β”‚   β”œβ”€β”€ config
β”‚   β”œβ”€β”€ controllers
β”‚   β”œβ”€β”€ middleware
β”‚   β”œβ”€β”€ models
β”‚   β”œβ”€β”€ routes
β”‚   β”œβ”€β”€ uploads
β”‚   └── server.mjs
β”‚
β”œβ”€β”€ frontend
β”‚   β”œβ”€β”€ src
β”‚   β”‚   β”œβ”€β”€ Api
β”‚   β”‚   β”œβ”€β”€ Components
β”‚   β”‚   β”œβ”€β”€ Context
β”‚   β”‚   β”œβ”€β”€ Layout
β”‚   β”‚   β”œβ”€β”€ Pages
β”‚   β”‚   β”œβ”€β”€ Service
β”‚   β”‚   β”œβ”€β”€ Utils
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚
└── README.md

πŸš€ Installation

1. Clone Repository

git clone https://github.com/Code-W-Gab/Resort_Reservation.git
cd Resort_Reservation

2. Backend Setup

cd backend
npm install

Create a .env file inside the backend folder:

PORT=5000

MONGO_URI=your_mongodb_connection_string

JWT_SECRET=your_jwt_secret

EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_email_password

CLIENT_URL=http://localhost:5173

Start Backend Server:

npm start

3. Frontend Setup

Open another terminal:

cd frontend
npm install

Create a .env file inside the frontend folder:

VITE_API_URL=http://localhost:5000

Start Frontend:

npm run dev

4. Access Application

Page URL
User Dashboard http://localhost:5173/home
Login http://localhost:5173/auth/login
Admin Dashboard http://localhost:5173/calendar

πŸ”— API Documentation

Authentication Routes

Base URL:

/auth
Method Endpoint Description
POST /register Register User
POST /login Login User
POST /verify-otp Verify OTP
POST /logout Logout User
GET /profile Get User Profile

Cottage Routes

Base URL:

/cottage
Method Endpoint Description
GET / Get All Cottages
GET /:id Get Cottage Details
POST / Create Cottage (Admin)
PUT /:id Update Cottage (Admin)
DELETE /:id Delete Cottage (Admin)

Reservation Routes

Base URL:

/reserve
Method Endpoint Description
GET / Get Reservations
POST / Create Reservation
PUT /:id Update Reservation
DELETE /:id Cancel Reservation
GET /calendar Reservation Calendar

πŸ”’ Authentication Flow

Register
    β”‚
    β–Ό
Send OTP Email
    β”‚
    β–Ό
Verify OTP
    β”‚
    β–Ό
Login
    β”‚
    β–Ό
Receive JWT Token
    β”‚
    β–Ό
Access Protected Routes

πŸ”„ Future Improvements

  • Online Payment Integration
  • SMS Notifications
  • Google OAuth Login
  • Resort Reviews & Ratings
  • Reservation Analytics Dashboard
  • PDF Booking Receipts
  • Multi-Resort Management
  • Mobile Application

πŸ“„ License

This project is licensed under the MIT License.


πŸ‘¨β€πŸ’» Author

Gabriel S. Concepcion

GitHub: https://github.com/Code-W-Gab

Email: gabconcepcion02@gmail.com


⭐ Support

If you found this project useful:

  • ⭐ Star the repository
  • 🍴 Fork the project
  • πŸ› Report issues
  • πŸš€ Share with others

Thank you for checking out the project!

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages