The Groupia Flight Booking App is a comprehensive flight booking system that includes both backend and frontend components. This guide will help you set up and run both parts of the application.
- PHP: Required for the backend.
- Composer: For PHP package management.
- Node.js and npm: For the frontend.
Start by cloning the repository to your local machine:
git clone 'https://github.com/Lipppitt/groupia-flight-booking-app'
cd backend
composer install
php artisan migrate
Add the following lines to your .env
file:
APP_URL=http://localhost:8000
FRONTEND_URL=http://localhost:5173
SANCTUM_STATEFUL_DOMAINS=localhost:8000,localhost:5173,localhost,localhost:8000,127.0.0.1:5173,127.0.0.1:8000
php artisan key:generate
Pull flight data from the API:
php artisan app:import-flight-data
cd ..
cd frontend
npm install
Add the following lines to your .env
file:
VITE_BASE_URL=http://localhost:8000
VITE_API_URL=http://localhost:8000/api/v1/
Start the development server:
npm run dev
- Make sure that your backend server (e.g., PHP server) is running on
http://localhost:8000
. - Ensure that your frontend server (e.g., Vite server) is running on
http://localhost:5173
.
- Backend Issues: If you encounter problems with migrations or key generation, verify your database connection settings in the
.env
file. - Frontend Issues: For problems with the frontend, confirm that the development server is running and that your
.env
configuration matches the backend settings.
Contributions are welcome! If you have suggestions, bug reports, or improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.