No description
Find a file
2025-12-17 11:14:43 -07:00
src fixes 2025-12-17 04:42:07 -07:00
.dockerignore fixes 2025-12-17 04:42:07 -07:00
.gitignore init 2025-12-17 04:31:22 -07:00
bun.lock fixes 2025-12-17 04:42:07 -07:00
Dockerfile fixes 2025-12-17 04:42:07 -07:00
drizzle.config.ts init 2025-12-17 04:31:22 -07:00
fly.toml fixes 2025-12-17 04:42:07 -07:00
package.json fixes 2025-12-17 04:42:07 -07:00
README.md docs for api routes :pf 2025-12-17 11:14:43 -07:00
tsconfig.json init 2025-12-17 04:31:22 -07:00

To install dependencies:

bun install

To run:

bun run dev

open http://localhost:3000

Endpoints

Get all items

GET /api/wishlist

Add an item

POST /api/wishlist
Content-Type: application/json

Body:

{
  "item": "Nintendo Switch",
  "link": "https://amazon.com/...",
  "price": 29999,
  "priority": 1,
  "category": "gaming",
  "notes": "OLED version please!"
}
Field Type Required
item string
link string
price number
priority number
category string
notes string

Claim an item

PATCH /api/wishlist/:id/claim

Delete an item

DELETE /api/wishlist/:id

Quick Examples

# Add item
curl -X POST http://localhost:3000/api/wishlist \
  -H "content-type: application/json" \
  -d '{"item":"PS5", "category":"gaming", "priority":1}'

# List all
curl http://localhost:3000/api/wishlist

# Claim item 1
curl -X PATCH http://localhost:3000/api/wishlist/1/claim

# Delete item 1
curl -X DELETE http://localhost:3000/api/wishlist/1