Skip to content

Dagger Hackathon - Flask App #62

@Schiiss

Description

@Schiiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions