Real World Halogen
A PureScript + Halogen codebase containing real world examples (CRUD, auth, design patterns, routing, pagination, etc) that adheres to the RealWorld spec and API.
- Check out the RealWorld project for more information on how to use this with various backends and compare it to other frameworks.
- Read the guide to learn how to design and build applications like this in PureScript & Halogen.
Installation
You can install and build the project with:
# clone the repository
git clone https://github.com/thomashoneyman/purescript-halogen-realworld
cd purescript-halogen-realworld
# install dependencies
yarn install
# build the project and run the local server
yarn build-serve
If you are doing local development, I'd recommend using yarn watch-dev
while working, and only use yarn watch-serve
when you need to view how your changes reflect in the application (Parcel takes some time to run).
Learn to build a real-world Halogen application
This repository contains the full implementation of a social blogging application (a Medium.com clone) called Conduit. It also contains a thorough guide to design and build real-world applications in PureScript with the Halogen library.
The guide walks you through how to design and build a real world Halogen application in PureScript. I’ll describe the design principles I use as a professional PureScript developer to write industrial apps, and we’ll put them to work to build Conduit. You can read the guide here, which includes chapters describing:
- The requirements for the application we're building
- How to design data and pure functions
- How to push effects to the edges of the application with the ReaderT / Three Layer pattern
- How to use Halogen components effectively
- A tour of the final implementation
Contributors
Several people helped this project along with code contributions, technical review, proofreading, and advice, including: