DEV Community

Cover image for Here it is. A realworld fullstack PureScript project
Kevin 心学
Kevin 心学

Posted on

Here it is. A realworld fullstack PureScript project

If you've ever looked into PureScript, you might have noticed a common hurdle: while it's an incredibly powerful and elegant language, finding comprehensive, real-world examples can be a challenge.

Tutorials can only take you so far, and many developers end up wondering: "What does a complete, production-ready application actually look like in PureScript?"

To help answer that, I've decided to open-source b8x.pub: a real-world, full-stack PureScript project.

The Context

This repository is the engine behind a complete rewrite of a 10-year-old legacy WordPress website.

My goal here is to show that coding a complex product in PureScript is not only possible but immensely enjoyable. I want to help move the language beyond its "experimental" reputation by providing a tangible guide to the architectural aspects that actually matter to everyday web developers.

What's inside?

  • A structurally mature backend: Made with love, it features Event Sourcing, CQRS, Hexagonal Architecture / SOLID principles, and Rico-Fritzsche-style Domain-Driven Design (DDD). You can explore how data is handled, routed, and structured in a real environment.
  • A WIP frontend: The UI is still under active development and being cleaned up from some quick iterations, but the framework (Halogen) is there and works pretty well.

Check out the repository here:

🔗 github.com/0x000000000000000000001/b8x.pub

And you can see the live (Work-in-Progress) result here:

🌐 v2.books.actualitte.com

If you've been looking for concrete code examples to wrap your head around PureScript's capabilities in the wild, I hope exploring this codebase helps you see things more clearly! Let me know what you think in the comments.

Top comments (0)