Your Choice JavaScript News

Node News Tuesday, May 8 //neue verbindung aufmachen, Tedious config file, Function & more…


What’s new?

  • The following shows how to create a simple Node.js project that reads and writes data to SQL Azure.
  • To get a clean foundation for further development i decided to split things into multiple files (dataaccess, model and management).
  • I also added a appdbtest.js file to demo how to use the management class to create new customers and persist them to the database.
  • First of all you need to create a new empty folder and run – – Next step is to create a file like this: – – Then you can create a file: – – With this you can create a file and include the customer class as well as the…
  • ; } – – To provide an easier interface you should create the following file: – – Finally you can create a file to test your management-API: – – It should be easy to extend this pattern with additional elements to create a nice express webapp that uses SQL Azure…

Tags: //neue Verbindung aufmachen, customer, tedious config file, err, var config


  • Users can then access custom functions like any other native function in Excel (such as ).
  • Note that for this example: – – Your server settings for the JSON file must have CORS enabled in order for custom functions to work correctly in Excel Online.
  • On the other hand, if your custom function retrieves data from the web, it must be asynchronous with respect to Excel.
  • Asynchronous functions must: – – The following code shows an example of an asynchronous custom function that retrieves the temperature of a thermometer.
  • Streamed custom functions let you output data to cells repeatedly over time, without waiting for Excel or users to request recalculations.

Tags: function, custom function, custom functions, JSON file, Excel


  • This article concentrates a lot more on using Node Webkit, but in order to make things more interesting, we will be including other amazing solutions and they will include: – – – Socket.io A realtime library for Node.js – Angular Material: Angulars implementation of Googles Material Design – MEAN: MEAN…
  • A route to serve the index file, another to setup chat data and the last to serve chat messages filtered by room names: – – // route for our index file – app.get(‘/’, function(req, res) { – //send the index.html in our public directory – route is simply run only…
  • Each object properties must match the schema object properties – var chatData = [{ – created: new Date(), – content: ‘Hi’, – username: ‘Chris’, – room: ‘php’ – }, { – created: new Date(), – content: ‘Hello’, – username: ‘Obinna’, – room: ‘laravel’ – }, { – created: new Date(),…
  • Sequentially, we need to: – – – Know when our application is launched – Send all the available rooms on connection – Listen for a user to connect and assign him/her to a default room – Listen for when he/she switches room – And, finally, listen for a new message…
  • emit(‘user joined’, data); – – }); – – //Listens for a new chat message – socket.on(‘new message’, function(data) { – //Create message – var newMsg = new Chat({ – username: data.username, – content: data.message, – room: data.room.toLowerCase(), – created: new Date() – }); – //Save it to database – newMsg.save(function(err,…

Tags: Node Webkit, app, web client, Node Webkit GUI, server


  • The asdf version manager is an awesome tool for managing many different language runtime versions.
  • I recently started using it for Node and noticed that no longer plays nice with it.
  • Turns out that if you install yarn through homebrew – your global directory will not take into account the asdf node version and path.
  • To correct this, first uninstall yarn from homebrew: – – Then in your or equivalent remove the yarn global path (see my previous post about Yarn global) – – Now you want to find where asdf is being sourced into your .
  • zshrc and insert a dynamic yarn global path: – – You can now install yarn again from npm which will put it in your asdf versioned node: – – When done restart your terminal and test to see that everything worked.

Tags: yarn global path, asdf version manager, asdf node version, different language runtime, brew uninstall yarn


  • Reaction Commerce offers a modern, scalable, and reactive architecture with real time eCommerce Development capabilities.
  • Reaction Commerce is a completely open source ecommerce platform based on JavaScript which widely utilizes Node.js, incorporates such platforms as Meteor and supports Docker, one can easily get all the benefits of containerization.
  • Ottemo is highly scalable and considered to be one of the modern ecommerce breakthrough technology that offers versatile Enterprise Cloud Commerce Platform.
  • Overall, increasing the use modern technology like as Node.js for eCommerce now evolving as most preferred eCommerce and mCommerce Platform, so as it is interesting to know that since the launch of Magento eCommerce back in 2008 that revolutionized eCommerce development built on PHP, Magento became an ideal and preferred…
  • MEAN is now preferred modern technology stack that will soon become the most widely used eCommerce and mCommerce platform with increasing active development using Node.js CMS.

Tags: ecommerce development, source ecommerce platform, Reaction Commerce, mobile eCommerce Apps, Cloud Commerce Platform


Top Node Courses

The Complete Node.js Developer Course (2nd Edition) (60,232 students enrolled)

By Andrew Mead
  • Build, test, and launch Node apps
  • Create Express web servers and APIs
  • Store data with Mongoose and MongoDB
  • Use cutting-edge ES6/ES7 JavaScript
  • Deploy your Node apps to production
  • Create real-time web apps with SocketIO

Learn more.


Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

By Maximilian Schwarzmüller
  • Build real Angular + NodeJS applications
  • Understand how Angular works and how it interacts with Backends
  • Connect any Angular Frontend with a NodeJS Backend
  • Use MongoDB with Mongoose to interact with Data on the Backend
  • Use ExpressJS as a NodeJS Framework
  • Provide a great user experience by using Optimistic Updating on the Frontend
  • Improve any Angular (+ NodeJS) application by adding Error Handling

Learn more.