Skip to content

alternateved/7tasks

Repository files navigation

7tasks

Implementation of 7GUIs tasks in PureScript.

Live preview is available here.

Setup

With npm

Install all dependencies of the project:

npm install

Add node_modules/.bin to path:

export PATH="./node_modules/.bin:$PATH"

Alternatively, use direnv:

echo "layout node" > .envrc
direnv allow

With Nix

Install Nix following the instructions on the Nix website.

To enter a development environment, simply open a terminal on the project's root and use below command to get a bash shell:

nix-shell

Otherwise, you can use direnv as so:

echo "use nix" > .envrc
direnv allow

and you'll have a working development environment now and whenever you enter this directory again.

Running

Bundle a project into an executable:

spago bundle-app

Open index.html where bundled index.js is imported:

xdg-open index.html

Or (on macOS):

open index.html