1
0 Comments

MVP complete

A week had gone by and I spent the little time I had on evenings hacking together the MVP so I could show some friends.

There is now a fully functioning API that's built on MongoDB Atlas, hosted with Zeit and available via GraphQL.

I ended up building the following mutations for simpler cart management;

  • addItem (add individual cart items)
  • setItems (set all items in bulk)
  • updateItem (update a single cart item by id)
  • removeItem (remove cart item by id)

There wasn't a concept of creating or updating a cart by this point, each mutation returned the current state of the cart, providing you gave it a unique ID.

I spent a few more evenings adding some very simple mutations and a query to get (or create) a cart by ID.

There are now handy mutations to increment/decrement item quantities, empty cart and delete the cart entirely.

Overall there is about 1000 lines of code to build the project. I'm fairly pleased with the outcome.

Trending on Indie Hackers
Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments How I Sourced 60% of Customers From Linkedin, Organically 11 comments