Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Build the Cancellation Flow! | Next.js + FastAPI | Flight Booking Engine | Day 69
Play lesson

FastAPI & Next.js project: Flight Booking App With DevOps. Day 1 - 100 - Build the Cancellation Flow! | Next.js + FastAPI | Flight Booking Engine | Day 69

5.0 (2)
23 learners

What you'll learn

This course includes

  • 104.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

A booking isn't real until you can cancel it. In Day 69, we complete the lifecycle of a flight reservation by building the Cancellation Feature. We are connecting the Next.js frontend to our FastAPI backend to handle this sensitive operation securely. We aren't just deleting rows from a database. We are implementing a proper State Transition Flow where bookings move from CONFIRMED to CANCELLED, ensuring we keep a history of the transaction. 💡 In this live build: Backend Logic: Creating the DELETE /cancel endpoint (Soft Delete pattern). Security Check: Ensuring User A cannot cancel User B's flight (Authorization). Frontend UI: Building a "Confirm Cancellation" modal in Next.js to prevent accidental clicks. UI Optimism: Updating the booking status instantly on the client side without a page reload. Cookie Auth: Using the HTTP-Only cookies we built in Day 68 to authorize the request. By the end, your users will have full control over their bookings with a smooth, professional UI experience. 📘 Watch the full playlist: 👉 https://www.youtube.com/playlist?list=PLdtwawCR2QjmdfhM-7SzDOVGop373bbgW 📂 GitHub Repo (Public Mirror): 👉 https://github.com/KNehe/aero_bound_ventures-public.git 🔥 Subscribe for real Full Stack Engineering. #FastAPI #NextJS #FlightBookingApp #WebDevelopment #StateManagement #FullStack #React

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere