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.
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
package.json
is higher than in the npm directory of the Github Repository.package.json
BackyardFriends/mountains