bullettrain

1.0.12 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i bullettrain

Weekly Downloads

14

Version

1.0.12

License

none

Last publish

Collaborators

  • jackie