Skip to content

demandforce/node-qbo-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QBO-Sample-Node

  • node.js for blazing fast app development
  • coffeescript for all the syntactic sugar
  • ect templates for some coffee in your views
  • express.js so you can concentrate on app logic
  • node-quickbooks module to make working with the QBO APIs a breeze

Getting Started with the app

  • Install dependencies with: npm install
  • Start serving requests: npm start
    npm start starts a forever process, that watches for changes in your app, and automatically restarts the node server. If you dont care about this, you can also run node_modules/coffee-script/bin/coffee src/app.coffee

Geting oauth token and secret

APIs

Once you have the consumer key, consumer secret, oauth token, oauth token secret and realmId(companyId), take a look at src/routes/index.coffee. Make sure you change the oauth token and oauth token secret to the values you obtained from the previous step(or read from your db if you are not storing them in the app). The following APIs will then work:

  • /company/:companyId/invoices: Renders page with the 10 most most recent invoices along with the customer and company information (html).
  • /company/:companyId: Renders information about the company (json)
  • /company/:companyId/customers: Renders all the customers in the company (json)
  • /company/:companyId/customer/:customerId: Renders information about a particular customer (json)

Test

You can also run node_modules/coffee-script/bin/coffee test/qbo_test.coffee to test if your credentials work fine. Make sure you replace you replace the consumerKey and consumerSecret values in src/config/credentials.json and also, the oauth token and oauth token secret values in the test file. Or if you want to write tests, run mocha. test/mocha.opts is already configured to run coffeescript

License

Copyright (c) 2014 Intuit, Inc.

About

Sample Node.js Project - QBO Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published