https://github.com/kgoksal/order-table
order-table
https://github.com/kgoksal/order-table
Last synced: 2 months ago
JSON representation
order-table
- Host: GitHub
- URL: https://github.com/kgoksal/order-table
- Owner: KGoksal
- Created: 2024-07-11T23:14:48.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T23:29:14.000Z (10 months ago)
- Last Synced: 2025-01-18T15:55:20.887Z (4 months ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ORDER TABLE WEB SERVER
This repository contains a Python Flask application designed for managing orders using a MySQL database. It initializes a Flask web server and configures connection parameters to interact with a MySQL database named 'order_table'. The database schema includes fields such as customer name, order status, progress, order date, and country.
The application provides functionalities to initialize the database (`init_order_db()`), fetch all orders (`get_orders()`), and add new orders (`add_order()`). Two routes are defined: '/' for displaying existing orders and '/add_order' for adding new orders via a web form. The HTML templates ('index.html') use CSS styling for a visually appealing and responsive interface, showcasing order details in a table format and providing a form to submit new orders. This repository serves as an educational example for integrating Flask with MySQL for basic order management tasks.