This application has been built using server action feature of Nextjs. This approach allows us to execute server-side actions directly from our components, bypassing the need to establish separate API routes.
Disclaimer: server actions are still experimental features in Nextjs and may cause unexpected behavior.
To learn more about server actions, you can check the documentation:
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.