amaclean2 / Treewells

The state management application for Sunday Peak
1 stars 0 forks source link

SundayPeak Treewells

This library is supposed to abstract out all of the hooks and serverside calls from the SundayPeak UI

To set it up first set the following object in app.js of mountains:

Connections.setConnections({ restUrl, websocketUrl}, storageApi)

Providers should be able to be accesses through <SundayPeakProviders /> which takes {children} as a parameter All the hooks should be exposed through whatever hook you need.

Running Development SundayPeak/mountains with npm link

Inside the Treewells app

npm link --only=production ../BackyardFriends/mountains/node_modules/react
npm link --only=production ../BackyardFriends/mountains/node_modules/react-dom

npm i -s ../BackyardFriends/mountains/node_modules/react
npm i -s ../BackyardFriends/mountains/node_modules/react-dom

Inside BackyardFriends/mountains

npm link --only=production ../../Treewells
npm i -s ../../Treewells

Releasing to npm