Application Distribution
JavaScript CSS Shell
#1 Compare This branch is 3 commits ahead, 5 commits behind SpotterRF:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
browser
client
server
.gitignore
README.md
deploy.sh

README.md

Controlling The HurpDurp Apps Server

Installation

The first thing you'll need to do in order to use the HurpDurp Apps Server is install it. Use one of our patented automagic install applications on your platform of choice. We support Linux, Macintosh OS X, and Windows 7.

OS X

Restarting the server, and you.

To restart the local server, you'll need to run these two commands, in order:

sudo launchctl unload /Library/LaunchDaemons/com.hurpdurp.apps.plist
sudo launchctl load /Library/LaunchDaemons/com.hurpdurp.apps.plist

Deleting applications, and you.

To delete an application, you will need to manually remove the files that were installed with that application. All applications that Appr installs, are located under /usr/local/lib/hurpdurp/mounts/. You'll be able to find apps, such as the Tracker Display installed there. To delete one of these apps, simply run the following command:

sudo rm -rf /usr/local/lib/hurpdurp/mounts/appName

Be sure to replace appName with the name of the app you want to delete. Otherwise, you may run into problems down the line.

After the app is removed, you will need to restart the patented SpotterRF Apps server. To perform this action, please refer to the information above.

Publishing applications, and you.

Boy skippy, it couldn't be more easy to publish applications to the Appr store. Follow this easy 12 step process to publish an app:

  1. Login to your trusty sidekick server.
  2. Create a ~/src directory, if you haven't already.
  3. Copy your application files to a directory named ~/src/app-name.
  4. Change directory into ~/src/app-name
  5. Run any applicable build scripts.
  6. Create a package.json if you haven't already.
  7. Add publishConfig: { "registry": "http://your-npm-registry" } to package.json
  8. Add the line registry = http://your-npm-registry to your ~/.npmrc
  9. Run npm adduser --registry=http://user:pass@your-npm-registry and follow the steps.
  10. Make sure you're in the ~src/app-name directory.
  11. Run npm publish ./

Grand Plan

The idea is to have an app store similar to the android app store.

  • Appr represents the app store client
  • hurpdurp.com represents the default

Installation

MyApp.com as entrypoint

  1. I visit myapp.com
  2. myapp.com checks localhost:8899/oauth and fails
  3. myapp.com asks me for a username and password for hurpdurp
  4. myapp.com's client creates a ticket for ip.hurpdurp.com with hurdurp.com/installer
  5. myapp.com asks me to install Appr from hurdupr.com/appr.{exe,pkg,deb}
  6. myapp.com continually polls localhost:8899/init/:ticket

Appr setup via MyApp.com

  1. Appr is installed
  2. Appr has no config, so it listens on localhost:8899/init/:ticket
  3. Appr receives the ticket
  4. Appr checks hurpdurp.com/register/:ticket
  5. hurpdurp.com/register/:ticket only responds when the Origin is localhost:8899
  6. the response passes credentials (the user is pre-logged in on localhost and myapp.com is pre-authorized)

MyApp.com as app

  1. I visit myapp.com again
  2. myapp.com checks localhost:8899/oauth and has succeeds with pre-authorization, pre-scoped
  3. I enjoy myapp.com

OtherApp.com as new app

  1. I visit otherapp.com
  2. otherapp.com checks localhost:8899/oauth and succeeds
  3. A list is presented including hurpdurp, myapp.com, etc
  4. I authorize otherapp.com for whichever scope
  5. otherapp.com is added to the list of repos

Updates

  1. Appr checks hurpdurp.com/node regularly for the latest node version and date
  2. Appr checks each app at whateverapp.com/appr/:product/:node_version to get a list of compatible app versions
  3. If all apps have compatible versions at or above their current version, the upgrade takes place

Management

  1. Going to hurpdurp.com directly will show a list of authorized apps from localhost:8899, which accepts hurpdurp.com as a master (not just a repo)

Apps

Apps should have a

  • version
  • install date
  • upgraded date
  • channel (stable, beta, developer (only selectable via api))
  • scope
  • origin (install source url)