Ashra Adventures is a travel agency website offering tours to various destinations within Pakistan. Built using React and Vite for the frontend, along with HTML, CSS, and JavaScript for additional functionalities. The backend is implemented in PHP to handle server-side operations and data management.
- Responsive design for seamless experiences across devices.
- Interactive tour booking and management system.
- Detailed information about destinations and tour packages.
- Admin dashboard for managing tours, bookings, and users.
- Integration with payment gateways for secure transactions.
- Fast Development & Deployment with Vite.
- Real-time updates with Hot Module Replacement (HMR) using React.
- React: For building the user interface.
- Vite: Fast development environment with optimized build.
- CSS: Styling and layout management.
- JavaScript: Client-side logic and interactivity.
- PHP: For server-side operations, data processing, and database management.
- @vitejs/plugin-react or @vitejs/plugin-react-swc for React Fast Refresh.
- Node.js (version 14.x or higher)
- PHP (version 7.x or higher)
-
Clone the repository:
git clone https://github.com/your-repo/ashra-adventures.git cd ashra-adventures
-
Install dependencies:
npm install
-
Set up the backend (PHP):
- Configure your PHP environment for server-side operations.
- Ensure the necessary PHP extensions are installed (e.g., MySQL, cURL).
-
Start the development server:
npm run dev
-
Visit
http://localhost:3000
to view the website locally.
To create a production build:
npm run build
- Hot Module Replacement (HMR): For real-time updates during development, use:
npm run dev
ashra-adventures/
β
βββ docs/ # Documents
β
βββ src/ # Source files
β βββ assets/
β βββ components/ # Route-based pages
β βββ index.css/ # Main css file
β βββ main.jsx/ # Main
β βββ App.jsx # Main React App component
β
βββ html/ # HTML Files
βββ php/ # PHP Files
βββ images/ # Images
β
βββ index.html/ # Main Starting Point
β
βββ package.json # Project dependencies
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/new-feature
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Open a pull request.