Skip to content

Add machine pricing display feature#5

Merged
matdevdug merged 1 commit into
mainfrom
add-machine-pricing
Jun 18, 2024
Merged

Add machine pricing display feature#5
matdevdug merged 1 commit into
mainfrom
add-machine-pricing

Conversation

@matdevdug

@matdevdug matdevdug commented Jun 18, 2024

Copy link
Copy Markdown
Owner

Related to #4

Implements the functionality to parse and display GCP machine type pricing information from a YAML file in a web application.

  • Adds a command in the Dockerfile to download pricing.yml during the build process and store it in the container.
  • Modifies main.py to:
    • Import the yaml module for parsing YAML files.
    • Add a new route /machine_pricing that handles GET requests, parses the pricing.yml file, and passes the data to a new template for rendering.
  • Creates a new HTML template machine_pricing.html that:
    • Uses Bootstrap theming to format the pricing information as rows organized by machine type.
    • Dynamically generates a table displaying machine types, regions, and various pricing rates based on the parsed YAML data.

For more details, open the Copilot Workspace session.

@matdevdug matdevdug merged commit 92a0507 into main Jun 18, 2024
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.

1 participant