inbox-scaffold-html5 icon indicating copy to clipboard operation
inbox-scaffold-html5 copied to clipboard

Doesn't work with Inbox Sync Engine

Open lnguyen opened this issue 11 years ago • 4 comments

I'm trying to setup Inbox Sync Engine locally with html5 but it seem html5 is hardcoded to use developer program. Is there a way to play around with all this locally?

lnguyen avatar Oct 02 '14 21:10 lnguyen

Sure! Follow the instructions at the bottom of the page here to install the html5 scaffold from within the vagrant box. Then change this line to point to your local install.

zipcode avatar Oct 02 '14 22:10 zipcode

i created an account using the bin/inbox-auth command,

i did as instructed but it seems ther e-mail in Please Sign iN dialog was posting to https://api.inboxapp.com.

i redirected to the http://localhost:5555?clientID= ???

So, what is the default clientID for the inbox API ?

i also removed the code and left only this in the HTML5 client App.

    // Replace `false` with your Inbox App ID
    var inboxAppID = 12341234; 
    // Delete this code once you've added your Inbox App ID
    // ---
    // ---

    $inboxProvider.baseUrl('http://localhost:5555').appId(inboxAppID);

sallespro avatar Oct 03 '14 07:10 sallespro

...so, i did a quick hack to test the HTML5 app with the OSS release.

index.html first remove the login panel from and set ng-switch="true"

baobab.service.namespace.coffee second, allow the namespace service to fetch the promise

    if (true)
      @promise = $inbox.namespaces().then (namespaces) =>
        @_namespaces = namespaces

sallespro avatar Oct 04 '14 01:10 sallespro

Sorry about the delay on this!

I've modified the scaffold so you can run it in this mode without any code changes - simply use "localhost" as your App ID. See https://gist.github.com/zipcode/177b8b5c655a94ab205a for instructions. Note that you can now use the hosted version against your local copy, so if you're just wanting to try it out then it's much more quick and easy now.

zipcode avatar Oct 14 '14 00:10 zipcode