This is a Flights App built with Vite, React, and TypeScript. It allows users to search for flights, view nearby airports, and select flight options.
- Search for flights
- View nearby airports
- Select departure and destination airports
- Choose cabin class and number of passengers
- Display flight itineraries with details
- Vite
- React
- TypeScript
- Tailwind CSS
- Axios
- React Hook Form
- Zod
- Sky Scrapper API
- Node.js (v22.12.0 or higher)
- npm (v10.9.0 or higher)
- Clone the repository:
git clone https://github.com/banych/flights-app.git
cd flights-app- Install dependencies:
npm install
- Create a .env.local file and add your RapidAPI key:
VITE_RAPID_KEY=your-rapidapi-key
To start the development server:
npm run devTo build the project:
npm run buildTo preview the production build:
npm run previewTo lint the code:
npm run lint