-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
As a hackathon host, I want to create a basic Flask application folks can run locally on their machine. The Flask app should be basic and should be developed to show off some of Daggers functionality.
The goal is to simulate a simple inventory management system for a small online store. The Flask app will allow the store manager to view and add products to the store’s inventory. Products have basic details such as a name, description, and price, stored in a CSV file that acts as the “database.”
Acceptance Criteria:
- Develop a Flask API that interacts with a CSV file that acts as the 'database'
- The CSV should contain the columns, ID, Name, Description, and Price (sample below)
- Create the API Routes mentioned below
- Build a few unit tests for these routes
API Routes
View Inventory (GET /items)
- The store manager can view all available products in the inventory.
Add New Product (POST /add_item)
- The store manager can add a new product to the inventory.
Sample CSV:
ID,Name,Description,Price
1,Wireless Mouse,Ergonomic design with wireless connectivity,25.99
2,Laptop Stand,Adjustable height stand for laptops,35.00
3,Bluetooth Headphones,Noise-canceling headphones with Bluetooth,59.99
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels