GraphQL and NodeJS [architect]

posted in: API, JavaScript, NodeJS | 0

https://blog.risingstack.com/graphql-overview-getting-started-with-graphql-and-nodejs/ GraphQL is a query language created by Facebook in 2012 which provides a common interface between the client and the server for data fetching and manipulations. The client asks for various data from the GraphQL server via queries. The … Continued

Node Restify [team]

posted in: API, NodeJS | 0

http://mcavage.me/node-restify/ Why use restify and not express? I get asked this more than anything else, so I’ll just get it out of the way up front. Express’ use case is targeted at browser applications and contains a lot of functionality, … Continued

Restful API – Handling large amounts of data

posted in: API, Data | 0

Summary: You can change your API to include additional parameters to limit the scope of data returned by your application. You could add limit and offset parameters to fetch just a little part. myapi.co.uk/messages?limit=10&offset=20 Another way to decrease the payload would … Continued

Industry Heavy Hitters Establish Node.js Foundation with Joyent [standards]

http://www.infoq.com/news/2015/02/nodejs-foundation Industry heavy hitters IBM, Paypal, Microsoft and The Linux Foundation have joined with Node.js stewards Joyent to set up the Node.js Foundation. The independent foundation is intended to oversee the production and development of Node.js. The announcement follows the release of … Continued

CORS headers [team]

posted in: AngularJS, API | 0

The CORS headers which worked for me on PHP Apache and Chrome are: header(“Access-Control-Allow-Origin: {$_SERVER[‘HTTP_ORIGIN’]}”); header(‘Access-Control-Allow-Credentials: true’); header(‘Access-Control-Max-Age: 0’); header(“Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS”); header(“Access-Control-Allow-Headers: {$_SERVER[‘HTTP_ACCESS_CONTROL_REQUEST_HEADERS’]}”); For every POST, PUT, DELETE there are 2 requests (if you don’t cache … Continued

Loopback – Sync local and remote data [team]

posted in: AngularJS, API, Architecture, MongoDB, SQL | 0

http://strongloop.com/strongblog/node-js-api-offline-sync-replication/  https://github.com/strongloop/loopback-example-full-stack Introducing Loopback LoopBack  is an open source Node.js API framework from StrongLoop that provides out of box offline synchronization using isomorphic JavaScript. For data replication it uses model-based data persistence. This functionality is available for client side Angularjs and … Continued

1 2