Skip to content

getlistas/web

Repository files navigation

Installation

First, clone the repository:

git clone git@github.com:gillchristian/listas.io.git
cd listas.io

You can enter a development shell with all non-JavaScript dependencies via Nix:

nix-shell

Alternately, you can install PureScript, Spago, and Zephyr manually. You can use NPM to install PureScript and Spago, and you can install the Zephyr binary from its releases page -- ensure it exists in your PATH by moving it to usr/bin/local.

Next, install JavaScript dependencies:

npm install

Building and running

Next, build the project (this command will run spago build; see the package.json file to see all helper scripts for the project):

npm run build

You can bundle the JS for production:

npm run bundle

And, once bundled, you can run a local server to use Listasio (defaults to port 8080, but if this port is already in use it will increment to 8081, etc.):

npm run serve

Dev mode

To run it in dev mode where saving your changes rebuilds and reloads the app, you can run the command below (which calls spago build --watch)

npm run watch

And run the application with

npm run serve-dev

This will open your default browser at port 1234