This is a simple template to play with websockets, IPC (libipc) communications and Halogen. Nothing serious.
 
 
 
 
Go to file
Gary Burgess 0ff25e5ad5 Merge pull request #12 from MonoidMusician/patch-1
Add UTF-8 charset to index.html
2017-07-15 12:25:53 +01:00
dist Add UTF-8 charset to index.html 2017-07-15 00:32:39 -05:00
src Update for Halogen 1.0.0 2017-02-28 00:31:13 +00:00
.gitignore Update build 2016-03-24 17:25:47 +00:00
.travis.yml Update dependencies for PureScript 0.11 2017-04-22 10:07:18 -05:00
LICENSE Initial commit 2016-01-18 21:19:35 +00:00
README.md Update for Halogen 1.0.0 2017-02-28 00:31:13 +00:00
bower.json Update dependencies for PureScript 0.11 2017-04-22 10:07:18 -05:00
package.json Update dependencies for PureScript 0.11 2017-04-22 10:07:18 -05:00

README.md

purescript-halogen-template

Dependency status

This is a template for starting a fresh project using the purescript-halogen library for declarative user interfaces.

Prerequisites

This guide assumes you already have Git and Node.js installed with npm somewhere on your path.

In the PureScript ecosystem Bower is currently the most commonly used package manager and we'll be relying on it for this project, so if you don't already have it, you can install it like this:

npm install --global bower

Getting started

First clone the repo and step into it:

git clone https://github.com/slamdata/purescript-halogen-template.git my-halogen-project
cd my-halogen-project

If you don't already have a global installation of the PureScript compiler and Pulp (or you want a local installation with the appropriate versions) you can run:

npm install

Finally you'll need to install the PureScript library dependencies for this project with Bower:

bower install

Building

The project can now be built with:

npm run build

This will build the PureScript source code and produce a bundled JS file as dist/app.js.

This is an alias for the Pulp command:

pulp build --to dist/app.js

If you open dist/index.html you should now have a basic working Halogen app.

That's pretty much it. Have fun with Halogen!