Markiza666 / Markiza666/Airbean-API
Som användare vill jag kunna lägga till valda kaffeartiklar i en kundvagn och justera kvantiteter så att jag kan bygga min beställning innan utcheckning.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
FE: Lägg till knappar för "Lägg i varukorg" och kvantitetsväljare vid varje menyartikel.
FE: Visa en sammanfattning av varukorgens innehåll (t.ex. antal artiklar, delsumma) som uppdateras i realtid.
BE: Implementera API-slutpunkter för varukorgshantering:
POST /api/cart/add: Lägg till en produkt i användarens varukorg.
PUT /api/cart/update/{productId}: Uppdatera kvantiteten av en produkt i varukorgen.
DELETE /api/cart/remove/{productId}: Ta bort en produkt från varukorgen.
BE: Designa databasstrukturen för tabellerna carts och cart_items, med koppling till users och products.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing menu, users, and products entry points to understand how the application currently exposes products and user data. Then map the requested cart endpoints and the carts/cart_items relationships before deciding the implementation scope. Done means users can add, update, and remove products, see a real-time cart summary, and have the cart data connected to users and products.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, database, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100