Skip to content

Merge frontend#38

Merged
ChronoInferna merged 5 commits intomainfrom
flask
Nov 3, 2025
Merged

Merge frontend#38
ChronoInferna merged 5 commits intomainfrom
flask

Conversation

@ChronoInferna
Copy link
Copy Markdown
Owner

This pull request introduces a web frontend for the Waypoint project, enabling users to interact with the shortest flight path algorithm through a browser interface. It adds a Flask-based web server, a user-friendly HTML/CSS/JS frontend, and updates the project configuration and documentation to support the new web functionality.

Web Application Integration:

  • Added a new Flask web server in web/app.py that exposes endpoints for rendering the frontend and processing route requests using the Dijkstra algorithm. The server loads graph and airport data and provides JSON responses for frontend requests.
  • Created a configuration file web/config.py to specify data file paths for the web server.

Frontend Implementation:

  • Added a styled HTML template (web/templates/index.html) for the user interface, including input fields for start and end locations, a button to reverse inputs, and a button to fetch the fastest route.
  • Implemented a JavaScript file (web/static/script.js) to handle user interactions, send requests to the backend, and display results or errors.
  • Added a CSS stylesheet (web/static/styles.css) for a modern, responsive look and feel.

Project Configuration and Documentation:

  • Updated pyproject.toml to version 0.2.0, added Flask as a dependency, and included Commitizen configuration for versioning and changelog management. [1] [2]
  • Added a changelog entry for version 0.2.0, summarizing new features, fixes, and refactors.
  • Updated README.md to document how to run the web server, list the new web/ directory, and reflect the updated project structure. [1] [2] [3]

@ChronoInferna ChronoInferna merged commit a799db4 into main Nov 3, 2025
2 checks passed
@ChronoInferna ChronoInferna deleted the flask branch November 3, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants