Skip to content

patelvivekdev/server-actions

Repository files navigation

Table of Contents

Server actions with Next.js.

A simple example of server actions with Next.js, Supabase, AuthJS, TailwindCSS, ShadCn UI, Zod, and react-hot-toast.

  • Learn how to use server actions to mutate data in Next.js.
  • Learn how to use Supabase for database and storage.
  • Learn how to use AuthJS for authentication.
  • Learn how to use TailwindCSS for styling.
  • Learn how to use ShadCn UI for UI components.
  • Learn how to use Zod for form validation.
  • Learn how to use react-hot-toast for toasts.
  • Learn how to use server actions for file upload.
Server Actions

Getting Started

First, run the development server:

npm install
npm run dev

# or
bun install
bun dev

Copy the .env.example to .env.local and fill in the required values.

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Server Actions, take a look at the following resources:

Extra resources:

Deploy on Vercel

Deploy with Vercel

Author

Links

Made with ❤️ by Vivek Patel