Overview:
The Cloudflare Workers SaaS Template is a comprehensive template for building SaaS applications using Cloudflare Workers and the OpenNext framework. This template offers a wide range of features for authentication, database management, email services, deployment automation, user interface design, and developer experience, making it a valuable resource for developers looking to create robust SaaS applications.
Features:
- Authentication with Lucia Auth
- Google OAuth/SSO Integration
- Session Management with Cloudflare KV
- Database with Drizzle and Cloudflare D1
- Email Service with React Email and Resend or Brevo
- Modern UI with Tailwind CSS
- Dark/Light Mode Support
- Server-side Rendering with React Server Components
Installation:
To run the Cloudflare Workers SaaS Template locally, follow these steps:
- Run
pnpm install
to install the necessary dependencies. - Copy
.dev.vars.example
to.dev.vars
and fill in the values. - Copy
.env.example
to.env
and fill in the values. - Run
pnpm db:migrate:dev
to migrate the database for local development.
Summary:
The Cloudflare Workers SaaS Template is a feature-rich solution for building SaaS applications, offering a wide range of functionalities from authentication and database management to deployment automation and UI design. With its comprehensive set of features and straightforward installation process, this template provides developers with a solid foundation for developing modern and efficient SaaS applications.