This is a Next.js project for B Airways, an airline booking and management system.
B Airways is a comprehensive web application that allows users to search for flights, book tickets, manage passenger details, and more. The project is built using Next.js, React, and integrates with a MySQL database for data management.
- Flight search functionality
- Passenger information management
- User authentication (Sign up and Sign in)
- Responsive design for various devices
- Integration with MySQL database
To run this project locally, follow these steps:
-
Clone the repository
-
Install dependencies:
npm install
-
Set up your environment variables: Create a
.env
file in the root directory and add the following:DB_HOST=your_database_host DB_USER=your_database_user DB_PASSWORD=your_database_password DB_NAME=your_database_name JWT_SECRET_KEY=your_jwt_secret_key SMTP_SERVER_USERNAME=your_smtp_username SMTP_SERVER_PASSWORD=your_smtp_password SMTP_SERVER_HOST=your_smtp_host SITE_MAIL_RECEIVER=your_site_email GEMINI_API_KEY=your_gemini_api_key
-
Run the development server and Python server:
# Start Next.js development server npm run dev # In a separate terminal, start the Python server python "app/utils/Services/python_backend/chatbot.py"
-
Open http://localhost:3000 with your browser to see the application.
app/
: Contains the main application codeapi/
: API routes for authentication and other functionalitiescomponents/
: Reusable React componentscontext/
: React Context for global state managementlib/
: Utility functions and database connectionlayout.tsx
: Root layout componentpage.js
: Main page component
public/
: Static assets
- Next.js 14 (App Router)
- React 18
- TailwindCSS
- Python (FastAPI)
- MySQL
- JSON Web Tokens (JWT)
- Google Gemini API
- TypeScript
Contributions to improve B Airways are welcome. Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License.
For any queries regarding this project, please contact the development team.
Happy coding and smooth flights with B Airways!