Welcome to the Stockorama App project 🦄.
A simple inventory management app that allows you to add and delete items.
By the end of this module, you'll learn how to create server actions, different ways to manage data, ability to vote for the most popular items and delete items in your warehouse.
Take a look at this below lesson for a quick demo of the project.
Stockorama is a real-world, full-stack inventory tracker built with Next.js, MongoDB, Prisma, Server Actions, Server and Client Components, and Zod. This demo walks through adding, liking and deleting products, and shows how each interaction stays fast even on slow networks. By the end of the project you'll understand Server Actions in depth.
useOptimistic, while a Server Action updates the database in the background and keeps everything in sync.useTransition. The product is disabled and shows a loading state until the server confirms the deletion, then it disappears from the list.You can find the Github repo for all the lessons here . The repo is divided into different commits for each lesson. As you follow along, you can check out the repo to see the final code for each lesson or if you get stuck.
git clone <your-forked-repo-url>.npm install.npm run dev.