This is a template for starting a fresh project with the Halogen library for writing declarative, type-safe user interfaces.
You can learn more about Halogen with these resources:
- The Halogen documentation, which includes a quick start guide and a concepts reference.
- The Learn Halogen learning repository.
- The Real World Halogen application and guide.
- The API documentation on Pursuit
You can chat with other Halogen users on the PureScript Discourse, or join the Functional Programming Slack (invite link) in the #purescript
and #purescript-beginners
channels.
- This uses pnpm instead of npm as the package manager
- This uses esbuild for compile times 10x-100x times faster than webpack
Prerequisites: This template assumes you already have Git and Node.js installed with pnpm
somewhere on your path.
First, clone the repository and step into it:
git clone [email protected]:Mateiadrielrafael/purescript-halogen-template.git halogen-project
cd halogen-project
I personally use nix to install purescript and spago, but if you want to install them with pnpm run:
pnpm i -D purescript spago
Then install the rest of the dependencies with:
pnpm install
To start the development server run the following command and then open a browser at localhost:8080
:
pnpm run dev
To generate a production bundle run:
pnpm run build
- Zephyr
- Hygen
- All contributors
- Github actions