Backend Setup

Transform your frontend templates into full-stack applications with backend services.

Overview

Most of our self-hosted templates are frontend-only, designed to be lightweight and easy to deploy. However, to unlock the full potential of your Next.js applications, you'll likely want to add backend functionality.

This guide covers the most popular backend services you can integrate with your templates to add features like user authentication, data storage, email functionality, and more.

Don't want to set up backend services? Check out our Applications category for ready-to-use solutions with backend functionality already configured.

Authentication

Add user authentication to enable login, registration, and user management in your applications.

Firebase Auth

Popular
Google's Authentication Service
Comprehensive auth solution with social logins

Firebase Authentication provides backend services and SDKs to authenticate users in your app.

  • • Email/password, phone, and social provider authentication
  • • Built-in security features and user management
  • • Generous free tier with 10,000 monthly active users
npm install firebase

Supabase Auth

Open Source
Open-Source Alternative
Authentication with built-in database integration

Supabase provides authentication that works seamlessly with PostgreSQL database.

  • • Row Level Security (RLS) for data protection
  • • Social logins and magic link authentication
  • • Real-time subscriptions and instant APIs
npm install @supabase/supabase-js

NextAuth.js

Next.js Native
Built for Next.js
Complete authentication solution for Next.js applications

NextAuth.js is designed specifically for Next.js applications with minimal configuration.

  • • 50+ built-in providers (Google, GitHub, etc.)
  • • Database adapters for popular databases
  • • JWT and database sessions support
npm install next-auth

Clerk

UI Components
Modern Authentication Platform
Pre-built UI components and user management

Clerk provides beautiful, customizable UI components for authentication flows.

  • • Pre-built sign-in/sign-up components
  • • User profile management and organization features
  • • Advanced security features and analytics
npm install @clerk/nextjs

Email & Newsletter

Integrate email services for newsletters, transactional emails, and marketing campaigns.

Mailchimp

Popular
Email Marketing Platform
Comprehensive email marketing with automation

Mailchimp offers email marketing, automation, and audience management tools.

  • • Drag-and-drop email builder
  • • Advanced segmentation and automation
  • • Analytics and A/B testing
npm install @mailchimp/mailchimp_marketing

ConvertKit

Creator-Focused
Creator Email Marketing
Email marketing designed for content creators

ConvertKit focuses on email marketing for creators with advanced segmentation.

  • • Visual automation builder
  • • Subscriber tagging and segmentation
  • • Landing pages and forms
npm install convertkit-api

Resend

Developer-First
Developer Email API
Simple API for transactional emails

Resend provides a developer-friendly API for sending transactional emails.

  • • Simple REST API and SDKs
  • • Email templates with React components
  • • Delivery analytics and webhooks
npm install resend

Database & Storage

Add data persistence and file storage capabilities to your applications.

Supabase Database

Full-Stack
PostgreSQL with Real-time
Open-source Firebase alternative with SQL database

Supabase provides a PostgreSQL database with real-time subscriptions and instant APIs.

  • • Auto-generated REST and GraphQL APIs
  • • Real-time subscriptions for live data
  • • Built-in storage for files and images
npm install @supabase/supabase-js

Neon

Serverless PostgreSQL
Serverless PostgreSQL
Modern PostgreSQL with branching and autoscaling

Neon provides a serverless PostgreSQL database with Git-like branching for development workflows.

  • • Database branching for development and testing
  • • Automatic scaling and connection pooling
  • • Compatible with existing PostgreSQL tools
npm install @neondatabase/serverless

Firebase Firestore

NoSQL
NoSQL Document Database
Flexible document database with offline support

Firestore is a flexible, scalable NoSQL database with real-time synchronization.

  • • Real-time synchronization across devices
  • • Offline support with automatic sync
  • • Powerful querying and indexing
npm install firebase

PlanetScale

Serverless MySQL
Serverless MySQL Platform
MySQL-compatible database with branching

PlanetScale provides a serverless MySQL database with Git-like branching for schema changes.

  • • Database branching for safe schema changes
  • • Automatic scaling and connection pooling
  • • Compatible with existing MySQL tools
npm install @planetscale/database

Alternative: Applications

If setting up backend services seems overwhelming, consider our ready-to-use applications instead. These come with backend functionality already configured and hosted for you.

Ready-to-Use Applications
Complete solutions with backend included
  • • Forums and community platforms
  • • Support ticket systems
  • • CRM and customer management tools
  • • E-commerce and marketplace solutions