W3C home > Mailing lists > Public > public-webpayments@w3.org > August 2013

App Store Demo is now online

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sat, 31 Aug 2013 17:08:44 -0400
Message-ID: <52225B5C.1070006@digitalbazaar.com>
To: Andrei Oprea <andrei.br92@gmail.com>
CC: Web Payments <public-webpayments@w3.org>
For those of you that are new to the list, Andrei Oprea is our Web
Payments Summer of Code student. He's been putting together an open App
Store demo using some of the PaySwarm technology and combining it with
Persona for the login. The project has reached the point where it needs
dedicated hosting, so Digital Bazaar is providing dedicated hosting for
the project. This email concerns the setup of the hosting environment
and Andrei's open app store software.

Hi Andrei,

You now have a dedicated site for your software:

http://appstoredemo.payswarm.com/

It's running on an Ubuntu 13.04 machine w/ node.js 0.10.17 and MongoDB
2.2.4.

I had to make two very minor code changes to get it up and running:

--------------------------------------------------------------------
Obviously, the hostname needed to change:

--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
   "scripts": {
     "start": "node app.js"
   },
-  "host": "http://21497a22.ngrok.com",
+  "host": "http://appstoredemo.payswarm.com",

The Persona login was failing until I changed this line:

--- a/routes/auth.js
+++ b/routes/auth.js
@@ -22,7 +22,7 @@ var auth = {
        verify : function (req, res) {

                var audience = 'audience=';
-               audience += process.env.NODE_ENV ?
'http://webpayments.jit.su' :
+               audience += process.env.NODE_ENV ?
'http://appstoredemo.payswarm

--------------------------------------------------------------------

I found one minor bug, you need to make sure that the app creates the
'public/uploads/' directory. I created the directory manually.

Creating an asset seems to work, but the listing fails due to a bad
signature. The listing hash doesn't check out, probably because there
are a number of URLs that are hard coded in the asset/listing. You can
see the issue if you try to buy the "A Simple Text File" example on the
home page.

The site has been setup to pull the newest code from github on an hourly
basis and restart the server. I'll be monitoring this throughout the
rest of the day, but it seems to be working for the most part so far.

Let me know if there are any issues or questions with the setup.

-- manu

-- 
Manu Sporny (skype: msporny, twitter: manusporny, G+: +Manu Sporny)
Founder/CEO - Digital Bazaar, Inc.
blog: Meritora - Web payments commercial launch
http://blog.meritora.com/launch/
Received on Saturday, 31 August 2013 21:09:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:07:24 UTC