Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Building a shopping cart app with Vercel Stack

Blog post from LogRocket

Post Details
Company
Date Published
Author
Rahul Padalkar
Word Count
2,861
Language
-
Hacker News Points
-
Summary

Vercel's latest release of Next.js v13 has sparked significant interest in the developer community, particularly with the introduction of Vercel Serverless Storage, which allows developers to utilize the Postgres database without self-hosting. Accompanying this is Vercel KV, a key-value store designed for JSON-like data. A tutorial demonstrates setting up Vercel Postgres and Vercel KV to build a simple shopping cart app using Next.js v13, which now defaults components to server-side rendering. The process involves creating tables for users, products, and cart items, developing login and signup pages, and implementing middleware for user session management. The tutorial also explores building a product list and setting up a profile page using Redis KV storage for profile data. Vercel, originally a hosting provider for Next.js applications, now offers comprehensive features for app development and deployment, with a favorable hobby tier for experimentation. Additionally, LogRocket is recommended for debugging and monitoring Next.js apps, providing tools to capture and replay user sessions and track errors and network requests.