Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a README

  • Loading branch information...
commit 7219c2a3df9f1ba92f24c0ea8c4940151c30f96e 1 parent 78d0904
@boucher authored
Showing with 22 additions and 1 deletion.
  1. +21 −0 README
  2. +1 −1  web.js
View
21 README
@@ -0,0 +1,21 @@
+A simple app written in node.js (and, marginally designed to run on Heroku).
+
+This listens for charge.succeeded webhooks from Stripe, and then prints a
+message (and plays a sound) in any browser connected to the server.
+
+For info on setting up on heroku, see this tutorial:
+http://devcenter.heroku.com/articles/node-js
+
+Install dependencies with:
+npm install .
+
+Run with:
+node web.js

Should be server.js instead of web.js now, I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
+Open in browser with:
+http://localhost:8080
+
+Configure your stripe webhooks here:
+https://manage.stripe.com/#account/webhooks
+
+to http://{YOUR_SERVER}/stripe-webhook
View
2  web.js
@@ -30,7 +30,7 @@ function chargeServer(client, con) {
});
}
-app.listen(8080);
+app.listen(process.env.PORT || 8080);
// then just pass the server app handle to .listen()!
Please sign in to comment.
Something went wrong with that request. Please try again.