Skip to content

jamesconstable/honey-time

Repository files navigation

Honey Time

Graphical clock-calendar for the Sajem Tan project.

Build instructions

Prerequisites

The dynamic elements of the page are implemented in PureScript using the Spago package manager / built tool. You can install these with npm like so:

npm install -g purescript spago purescript-psa

The SVG images are generated from the Haskell code in the svg-generation directory, using the Stack build tool. Ensure you have both Haskell and Stack installed before continuing; if you use Homebrew on Mac, you can do this with:

brew install haskell-stack

You will also need Python 3 and Sass, which can both be installed with Homebrew:

brew install python3 sass/sass/sass

Building the site

To generate the site, run

make

in this directory; it will produce a new subdirectory called site containing the results. You can deploy this directory directly as a static site, or view it locally with Python's SimpleHTTPServer using:

make run

(Direct your browser to http://localhost:8000 to view.)