Build real features.
Copy, paste, ship.
Practical Next.js tutorials for the parts every app needs: email, login, databases, uploads, caching and AI.
How to Send Email from Next.js (App Router + Server Actions)
Build a working contact form and a welcome email in a Next.js App Router app, with the API key kept on the server and no SMTP setup.
Read the guide- A contact form that emails you through a Server Action
- A reusable sendEmail() helper that only runs on the server
- A welcome email sent when a user signs up
- Friendly errors for bad input and rate limits
Contact forms, templates, resets and reminders.
How to Send Email from Next.js (App Router + Server Actions)
Build a working contact form and a welcome email in a Next.js App Router app, with the API key kept on the server and no SMTP setup.
Read guideBuild Beautiful Transactional Emails with React Email + Next.js
Write a receipt and a welcome email as React components, preview them in the browser while you edit, then render them to HTML and plain text and send them from a Next.js Server Action.
Read guidePassword Reset and Email Verification in Next.js
Add a forgot password flow, a reset password page and required email verification to a Next.js app, using CloudHike Auth to send the emails and check the tokens.
Read guideSend Scheduled Emails and Reminders from Next.js
Schedule one-off reminders like "your trial ends in 2 days", cancel them when plans change, and send a daily digest to users who opted in, from a recurring job that calls a signed Next.js route.
Read guideDatabase & Auth
Postgres, sign-up and login, protected routes.
How to Connect Postgres to Next.js with Drizzle ORM
Connect a Next.js App Router app to Postgres with Drizzle ORM and node-postgres, run migrations, read data in a Server Component and write it from a Server Action.
Read guideAdd Email/Password and Google Login to Next.js
Build sign-up, email login, Google login and sign-out for a Next.js App Router app, with the session token stored in an HTTP-only cookie your own server sets.
Read guideProtect Routes and Server Actions in Next.js 16
Lock down a Next.js 16 app in two layers: a quick cookie check in `proxy.ts` that redirects signed-out visitors, and a real session check in a Data Access Layer that every page, Server Action and Route Handler calls.
Read guideStorage
File and image uploads straight to S3.
Upload Files to S3 from Next.js with Presigned URLs
Let users upload files from the browser straight to an S3 bucket. Your Next.js server checks each file and signs a short-lived URL, but the file itself never passes through it.
Read guideBuild an Image Upload with Preview and Progress Bar in Next.js
Build a drag-and-drop image uploader with an instant preview and a real progress bar. Files go straight to S3, the key is saved in Postgres, and a gallery shows them with presigned URLs.
Read guideRedis & Jobs
Rate limits, caching and background work.
Rate-Limit Next.js API Routes and Server Actions with Redis
Stop abuse and runaway clients with a Redis rate limiter you can read in one sitting. It works in route handlers and Server Actions, returns proper 429 responses, and needs no extra service.
Read guideCache Slow Database Queries in Next.js with Redis
Put Redis in front of a slow Postgres query with a small cache-aside helper. Learn how to clear it on writes, stop stampedes when a hot key expires, measure the hit rate, and when Next.js's own cache is the better tool.
Read guideRun Background Jobs in Next.js (No Worker Server Needed)
Move slow work out of your Next.js requests. A hosted job runner calls a route handler in your app, retries it when it fails and posts the result back to a webhook, so there is no queue or worker process to run.
Read guideAI
Chatbots and AI features with any model.
Add an AI Chatbot to Next.js with Streaming Responses
Build a chat page that streams answers word by word, using the Vercel AI SDK's `useChat` and a route handler, with one API key for GPT, Claude, Gemini and more.
Read guideBuild an AI Summarize Button in Next.js
Add a button that turns a long article, ticket or document into a short summary and key points, with a Server Action, structured JSON output and a Redis cache so the same text is never paid for twice.
Read guideFull projects
End-to-end builds that tie it all together.
Build a Full SaaS Starter with Next.js: Auth, Postgres, Stripe and Email
Wire up the core of a paid Next.js app: users sign up, pay with Stripe Checkout, a verified webhook updates their plan in Postgres, and they get a welcome email. Each piece links to a focused guide.
Read guideBuild a Waitlist Page with Email Confirmation in Next.js
Build a launch waitlist end to end: a sign-up form with a Server Action, a Postgres table, a double opt-in confirmation link, a Redis rate limit per IP and a "you're #123 in line" message.
Read guideMigrate from Firebase or Supabase to CloudHike: Step by Step
An honest, step-by-step plan for moving a Next.js app off Supabase or Firebase: what moves automatically, what needs a script, what needs rethinking, and how to switch over without locking users out.
Read guide