Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

brakmic/purescript-hoodie

Repository files navigation

purescript-hoodie

Hoodie Bindings for PureScript (Work in Progress)

This is a PureScript library containing bindings for accessing the offline-first, noBackend Framework Hoodie.

The article on this library is located here.

Currently, these API are implemented:

Store API

Event Handling

There's more to come. 😄

Installation

bower install
npm install

Building

Library

gulp

Demo App

gulp make-demo [initial build only or when API implementation changes]
gulp build-demo

Running

Go to your install directory and type in the console:

npm start

After a few moments you'll see a message like this:

Hoodie will automatically open the demo app in your browser. This app is basically a shallow copy of the original Hoodie TestApp. Open browser console to see a few messages from your PureScript-based app.

Running on Windows

If your CouchDB installation is not in the default path (C:\Programs ... etc) then you'll likely run into some weird errors like "no CouchDB found".

In this case you can use my proposed fix.

The solution is very simple: just copy the contents of the multicouch-folder to your multicouch that's located under node_modules.

More detailed info on this error can be found here.

However, I have to warn you that this fix only worked on my machine and therefore I can't give you any guarante that'll work the same way on yours.

But if more people test the fix we can find out if it works in general. Thanks for trying it out. 👍

License

MIT