问HN:你会为F# + Angular和自托管的入门套件付费吗?
我一直在思考一个想法,旨在帮助开发者更快地启动全栈应用程序,并提供一种类型安全、现代化的设置。我考虑创建一个全面的模板,内容包括:
- 后端:使用 F#(包括 API 和工作者),采用 F# 的消息传递架构,并通过 SignalR 实现实时更新。
- 前端:集成了 DaisyUI 和 Tailwind CSS 的 Angular,配备简单的单例服务来保持状态,并提到 SignalR 以实现实时更新。在 Angular 中,rxjs/signals 是一个非常强大的特性。
- 协调:使用 Redis Streams 提供类似 Kafka 的能力,Postgres 的 skip locked 特性用于更安全的并发分布式工作队列,Redis/Postgres 分布式锁允许扩展(多个 Docker 工作者/API)。
- 部署:在 Fedora CoreOS 上自托管(维护无忧的不可变系统),使用 Ansible 进行自动化,部署在 Hetzner 专用服务器上(使用 Docker Swarm),以实现显著的成本节约和控制。
- 可观察性:使用 Vector 收集容器日志,使用 DuckDB 探索收集的日志。
- 网络:自动域名管理的 Traefik(便捷的 SSL,Docker 友好的反向代理)。
- 重要集成:Mailjet(电子邮件),Stripe(支付),Mailerlite(新闻通讯分发和注册),Docusaurus(文档 + 博客)即刻可用。
这个想法是将其作为一次性终身购买提供,并附带免费更新,类似于 https://shipfa.st/ 的模式,给用户在类似 https://cryptoquant.dev/ 的项目上提供显著的起步优势。
你们中的一些人可能在 https://cryptoquant.dev/ 上见过我的 F# 架构/解析帖子——这个想法旨在将这种思维方式转化为一个实用的、可重用的资产。
在我花时间构建着陆页和收集电子邮件之前,我希望能得到你们的初步反馈:
一个全面的 F# + Angular 模板,采用这种特定的自托管栈,你们觉得有价值吗?
查看原文
I've been thinking about an idea to help developers launch full-stack applications faster and with a type-safe, modern setup. I'm considering creating a comprehensive template that would include:<p><pre><code> - Backend: F# (both api and worker), with message passing architecture in f# and realtime updates via signalR
- Frontend: Angular with DaisyUI + Tailwind CSS pre-integrated, with simple singleton services to hold state and mentioned signalR for live-upates. Here rxjs/signals in angular are a very powerful feature.
- Coordination: Redis Streams for Kafka-like capabilities, Postgres skip locked for even safer concurrent distributed work queues, Redis/Postgres distributed locks which allow scaling (multiple docker workers/apis)
- Deployment: Self-hosted on Fedora CoreOS (for maintenance-less immutable system) using Ansible for automation, deployed at hetzner dedicated server (using docker swarm) for major cost saving + control
- Observability: Vector for collecting logs from containers, duckdb for exploration of collected logs.
- Networking: Auto domain-managed Traefik (easy SSL, docker-friendly reverse proxy).
- Essential Integrations: Mailjet (email), Stripe (payments), Mailerlite (newsletter distribution and signup), Docusaurus (documentation + blog) ready to go.
</code></pre>
The idea is to offer this as a one-time lifetime purchase with free updates, similar to the model of https://shipfa.st/, giving user a significant headstart to a project similar to https://cryptoquant.dev.<p>Some of you might have seen my F# architecture/parsing posts on https://cryptoquant.dev – this aims to bring that kind of thinking into a practical, reusable asset.<p>Before I spend time building out a landing page and collecting emails, I'd love to get your initial feedback:<p>Is a comprehensive F# + Angular template with this specific self-hosted stack something you'd find valuable?