This is a Next.js flight tracking application that visualizes aircraft data with interactive maps using Leaflet.
First, clone the repository and install all dependencies:
# Install all project dependencies
npm install
# Install TypeScript definitions for Leaflet
npm install --save-dev @types/leaflet-
Copy the environment template file:
cp env.template .env.local
-
Edit
.env.localand add your OpenWeatherMap API key:- Get a free API key at: https://openweathermap.org/api
- Replace
your_openweathermap_api_key_herewith your actual API key
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
This project uses Playwright for E2E browser testing.
If you haven't already, install Playwright and its browsers:
npx playwright installTo run all E2E tests:
npx playwright testTo run a specific test file:
npx playwright test tests/e2e/flight-search.spec.tsAfter running tests, view the HTML report:
npx playwright show-report- By default, only Desktop Chrome tests are run (see
playwright.config.ts). - The Next.js dev server will be started automatically if not already running.
- If you see timeouts, ensure your local server and data are loading correctly.
- For troubleshooting, check the
test-results/andplaywright-report/folders for screenshots and videos of failures.