
Create a Next.js app using the latest version with TypeScript, Tailwind, src directory, app router, and turbo pack, then run the dev server for Shea Travel packages.
Install and configure shadcn in a Next.js app with npx chakan, add a button and input from the CDN, and adjust global css and lib for a themed UI.
Override the shard CDN theme by selecting a color via Qaqun or tweak CDN, paste the color code into tailwind v4, and adjust primary color, borders, and component heights.
Build authentication user interface for a next.js and supabase app, including login and register forms, header and hero, and url-driven drawer logic with public and private routes and role-based dashboard.
Build the home page interface with a two-column hero grid, featuring a header with a login button, Montserrat font, a hero image, responsive layout, and groundwork for an authentication sheet.
Implement an authentication sheet component in a Next.js and Supabase travel booking app by wiring a sign-in button to open the sheet, rendering login or register forms, and centering content.
Create a register form UI with name, email, and password fields, using a form schema with react hook form and Zod, and include a login link and register button.
Reuse the register form to build the login UI, add a role field with a radio group (user or admin), and implement email/password validation and login action.
Set up a Supabase account, create a project, obtain the project URL and API key, and integrate it into the Next.js app via env variables and a config file.
Create a user profiles table in Supabase with id, name, email, password, and role; set email unique, enable an rls policy for all tables, and create a TypeScript user interface.
Register server action in Next.js hashes passwords with bcryptjs, checks existing emails via Supabase, inserts new users, and shows feedback with React Hot Toast.
Optimize server actions by creating reusable error and success response helpers in a src/helpers/request-responses module, ensuring consistent success, message, and data objects across actions.
Learn to implement a login API in Next.js with Supabase, validating email and role, generating a jwt token, and storing it in cookies to navigate user or admin dashboards.
Learn how to fetch and display the logged-in user in Next.js private routes for admin and user dashboards by using server and client components, JWT cookies, and Supabase queries.
Teach how to protect private routes with Next.js middleware by redirecting unauthenticated users to the home page and routing authenticated users to their dashboard based on cookies.
Implement a private route layout in a Next.js app with a header, hamburger menu, and sidebar for user and admin dashboards, using a layout provider and skeleton.
Develop a header component in the private layout that shows the project title and the logged-in user name and image, using a zustand global store to fetch user data.
Learn to build a responsive sidebar in a Next.js and supabase travel booking app, with lucide icons, role-based user/admin menus, active item highlighting, and logout via cookies.
Create a spinner component to display a loading indicator during asynchronous processes like fetching user information in the admin dashboard, with a centered, animated loader and a default height prop.
Explore the admin packages module, including listing, adding, editing, and deleting packages with fields such as name, descriptions, trip details, pricing, guide info, and media.
Create the packages table and interface for the travel booking app, defining name, small description, full description, start and end dates, and duration. Set permissions and actions for the packages.
Implement server actions for the packages module using Supabase, including create, update, get by id, delete, and list all, with success and error responses.
Build the admin packages UI by creating a reusable page title and package form, and set up add and edit routes and the UI folder structure.
Learn to build package form for a travel packages booking app, detailing a form schema, default values, and fields such as name, descriptions, dates, capacity, price, guide details, and images.
Integrate the tinymce text editor into a Next.js form, secure the API key, add rich text and image previews, and validate the package form before submission.
Explore implementing onsubmit for a travel & tourism packages form in a Next.js and Supabase app by uploading images to storage, obtaining URLs, and saving the package.
Fetch and display travel packages in the admin packages route using a client component and the get all packages server action. Show results in a dynamic table with actions.
Edit packages by fetching package data by id, populating the form with default values and images, and updating with new and existing images, with suspense-based loading for server components.
Learn to implement delete package functionality in a Next.js and Supabase app, including server actions, loading states, and success or error toasts, with updates to the is active flag.
Display all active packages on the user side as a responsive grid of cards with name, image, and start date; click a card to view package information.
Fetch and display a travel package by id on a client component in a Next.js and Supabase app, show loading, handle not found, and render properties, media, and description.
Build the package booking page by fetching and displaying package data, storing the selected package in a global store, and enabling member data entry and a payment modal.
Build a dynamic members form on package booking page in a Next.js app, with a members array of name, email, and mobile number, plus add/remove and total price per member.
Master Stripe integration in a Next.js booking app by creating a Stripe account, storing keys in env, obtaining a payment intent token, and saving the booking on success.
Set up stripe payment intents in a next.js and supabase app, creating a server action that returns the client secret for usd payments with a travel package booking description.
Integrate stripe in Next.js app by wrapping the credit card form in elements provider and loading stripe with a public key; use client secret to render the modal checkout form.
Render the checkout form with Stripe payment and address elements, implement onsubmit using Stripe confirm payment, and display a success toast with the payment id.
Create the bookings and booking members tables, define fields like package_id, user_id, total_tickets, total_price, payment_id, and status, establish relations, and configure full permissions for server action integration.
Create and manage bookings using a Next.js and Supabase workflow, building booking and booking members records, updating package booked tickets, and validating payment status for a seamless travel package checkout.
Welcome to the Travel & Tourism Packages Booking App course, where you’ll learn to build a full-stack, production-ready web application using the latest modern web stack. This project is loaded with real-world features and will help you take your development skills to the next level.
Tech Stack Used
Nextjs 15 (App Router) for frontend and backend
Supabase for database, authentication, and storage
Tailwind CSS for responsive styling
Shadcn UI for clean and consistent components
Zustand for lightweight state management
TinyMCE for rich text itinerary creation
Stripe for secure online payments
What You’ll Build – Curriculum Highlights
User authentication: Sign up, login, logout with Supabase
Role-based access: Admin and regular users
Admin features: Create, update, delete travel packages with itinerary, media, and availability
User features: Browse packages, view details, check real-time availability, book packages
Flexible booking: One user can book multiple packages or for multiple members
Stripe integration: Real-time, secure payment flow
Dashboards:
User Dashboard: View and manage bookings, see total spent, track travel history
Admin Dashboard: Manage packages, view all bookings, track revenue and insights
Profile management: Update user details anytime
Fully responsive design: Works beautifully on mobile and desktop
End-to-end deployment with Vercel and Supabase
Code-first, project-based learning with full GitHub source code
Q&A section to answer real-world development questions