This is a Node.js/Expressjs based Ecommerce Framework
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README
package.json

README

This is a framework I am working on for Node.js based ecommerce

Please be patient I am new to Node and it may take me a bit to get everything 100%


Example

A full integration example can be found here... https://simplecart-jgleason.rhcloud.com. Please remember this is in development

Paypal Integration

var paypal = require('bullettrain').use('paypal');
exports.addApp = function(appServer){
  app = appServer;
  paypal.setApp(app)
}


exports.setExpressCheckout = function(req, res){
  paypal.setExpressCheckout(req,res);
}


exports.getCheckoutDetails = function(req, res, next){
  paypal.getCheckoutDetails(req,res,next)
}

exports.finalizePayment = function(req, res){
  paypal.finalizePayment(req,res)
}

Mongo/RESTi(ish) Integration

bullet = require('./lib/bullettrain').useRest('mongo')
app.post('/rest/catalogentries', bullet.postCatalogEntry,routes.goHome);


Google OAuth v2 (With ExpressJS)

google = require('bullettrain').useInterface('google')
google.setClientId(GOOGLE_CLIENT_ID)
google.setClientSecret(GOOGLE_CLIENT_SECRET)

app.get('/auth/google', google.requestCode)
app.get('/auth/google/callback', google.callbackHandler, google.getUserInformation, routes.goHome)