The Airport Time Estimator is a simple web application that helps you calculate the optimal time to leave for the airport. By inputting your departure time, driving time to the airport, how early you want to arrive before boarding, and additional time for snacks, the app will compute when you should leave.
- Responsive Design: Mobile-first approach ensures the app looks great on all devices.
- User-Friendly Interface: Simple and intuitive form inputs.
- Real-Time Calculation: Automatically calculates the best time to leave as you input your details.
- Add to Calendar: Provides an option to add the calculated time to your Google Calendar.
- Node.js (v14 or later)
- npm (v6 or later)
-
Clone the repository:
git clone https://github.com/yourusername/airport-time-estimator.git cd airport-time-estimator
-
Install dependencies:
npm install // OR npm install --legacy-peer-deps
-
Start the development server:
npm start
The app should now be running on
http://localhost:3000
.
To create a production build of the app, run:
npm run build
The production-ready files will be in the build
directory.
This project is configured to deploy on Netlify. The build command and publish directory are specified in the netlify.toml
file:
[build]
command = "npm run build"
publish = "build"
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
public/
: Static assets and the HTML template.src/
: Source code, including components, hooks, and utilities.src/App.js
: Main app component.src/components/
: Contains individual React components.src/hooks/
: Custom hooks for managing form state and URL parameters.src/utils/
: Utility functions for date and time formatting.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for using the Airport Time Estimator!