node.js

RedHat Shadowman Logo
Article

Whisking Functions with Promises using OpenWhisk

Kamesh Sampath

In this blog we will see how to build a simple nodejs function that can do a reverse geocoding using GoogleMaps API.,and deploy the functions on to OpenWhisk

Configuring mKahaDB persistence storage for ActiveMQ
Article

Use Private NPM modules with RHMAP

Mikel Sanchez

Use Private NPM modules with RHMAP. In this Blog post entry I will try to cover, how to use Red Hat Mobile Application Platform with private npm modules from registry.npmjs.org.

Red Hat JBoss Developer Studio Logo
Article

Announcing Red Hat Developer Studio 11.1.0.GA and JBoss Tools 4.5.1.Final for Eclipse Oxygen.1A

Jeff Maury

JBoss Tools 4.5.1 and Red Hat JBoss Developer Studio 11.1 for Eclipse Oxygen.1A are here waiting for you. Check it out! Installation JBoss Developer Studio comes with everything pre-bundled in its installer. Simply download it from our JBoss Products page and run it like this: java -jar jboss-devstudio-<installername>.jar JBoss Tools or Bring-Your-Own-Eclipse (BYOE) JBoss Developer Studio requires a bit more: This release requires at least Eclipse 4.7 (Oxygen) but we recommend using the latest Eclipse 4.7.1A Oxygen JEE Bundle since...

First steps in integration of Windows and Linux Containers in Red Hat OpenShift
Article

First steps in integration of Windows and Linux Containers in OpenShift

Glenn West

I've started an interesting exploration on the integration of Microsoft Windows Containers and Linux Containers in an OCP Environment. This allows a true bi-modal IT technical implementation by combining the strength of both platforms into one cluster. So, I start this off, with the deployment of an OpenShift Cluster on Azure, using the 3.6 reference architecture . After this is run, I used the Azure Portal to add a Windows Server 2016 Node to the cluster. So if you look...

RedHat Shadowman Logo
Article

Red Hat updates Python, PHP, Node.js, more; supports new arches

Mike Guerette

I am pleased to announce the immediate availability of Red Hat Software Collections 3.0 Beta , Red Hat’s newest installment of open source development tools, dynamic languages, databases, and more. Delivered on a separate lifecycle from Red Hat Enterprise Linux with a more frequent release cadence, Red Hat Software Collections bridges development agility and production stability by helping you create modern applications that can be confidently deployed into production. Most of these components are also available in Linux container image...

Using New Relic
Article

Using New Relic in Red Hat Mobile Node.js Applications

Evan Shortiss

Introduction New Relic is an application-monitoring platform that provides in-depth analytics and analysis for applications regardless of the type of environment where they are deployed, or as New Relic put it themselves: “Gain end-to-end visibility across your customer experience, application performance, and dynamic infrastructure with the New Relic Digital Intelligence Platform.” - New Relic You might ask why there’s a use for New Relic’s monitoring capabilities when Red Hat Mobile Application Platform (RHMAP) and OpenShift Container Platform both offer insights...

Article Thumbnail
Article

Announcing Red Hat Developer Studio 11.0.0.GA and JBoss Tools 4.5.0.Final for Eclipse Oxygen

Jeff Maury

JBoss Tools 4.5 and Red Hat JBoss Developer Studio 11.0 for Eclipse Oxygen are here waiting for you. Check it out! Installation JBoss Developer Studio comes with everything pre-bundled in its installer. Simply download it from our Red Hat Developers and run it like this: java -jar jboss-devstudio-<installername>.jar JBoss Tools or Bring-Your-Own-Eclipse (BYOE) JBoss Developer Studio requires a bit more: This release requires at least Eclipse 4.7 (Oxygen) but we recommend using the latest Eclipse 4.7 Oxygen JEE Bundle since...

Red Hat Mobile Application Platform
Article

Working with peer, scoped and private npm dependencies in RHMAP

David Martin

RHMAP Environments An RHMAP Environment provides a Node.js runtime for Mobile Backends. There are 2 environment types: Dynofarm & OpenShift. The former is an LXC based PaaS, written in Node.js & bash. It is superseded by OpenShift environments. However, there are still many Dynofarm environments in use in the RHMAP SaaS offering. fh-npm Rationale fh-npm is a wrapper for npm. It is only used in Dynofarm environments to install npm dependencies specified in a package.json file. It was developed by...

Red Hat Mobile Application Platform
Article

Debugging RHMAP Apps locally with Visual Studio Code (VS Code)

David Ffrench

Do you want to speed up your debugging process? This blog post is designed to help you do just that by empowering you with the knowledge of how to debug RHMAP Cloud Apps and MBaaS services locally using VS Code. For an introduction to running RHMAP client apps locally, see How to Setup your Apps to Target Locally on Device . Why VS Code? Interactive Debugger allows you to step through source code, inspect variables, view call stacks, and execute...

Video Thumbnail
Video

Deploy Docker images on OpenShift 3 with Red Hat Developer Studio

Learn how to deploy Docker images on OpenShift 3, running in Red Hat's Container Development Kit, with Red Hat Developer Studio 10 The Microservices Architecture tutorial is available at https://htmlpreview.github.io/?https://github.com/redhat-helloworld-msa/helloworld-msa/blob/master/readme.html Learn more about Red Hat Developer Studio, Docker and OpenShift 3 support in Eclipse from http://tools.jboss.org/

Video Thumbnail
Video

Helloworld Microservices Introduction

Our Microservices Playground: 6 different microservices, each using a unique Java framework: Dropwizard, Spring Boot, WildFly Swarm, JBoss Enterprise Application Platform, Node.js, Vert.x.

Leveraging Docker+Kubernetes+OpenShift running in a Red Hat Enterprise Linux (RHEL) VM. Microservices Slide Presentation http://bit.ly/helloworldmsa Demo Source Organization https://github.com/redhat-helloworld-msa Download the RHEL VM for Docker+Kubernetes+OpenShift (CDK) http://developers.redhat.com/products/cdk/docs-and-apis/

NodeJS
Article

Installing Node.js dependencies with Yarn via s2i builds and OpenShift

David Martin

Building a docker formatted container image for a Node.js application There are 2 main strategies for building an image for a Node.js Application. The most common strategy is simply using a Dockerfile with a base image of something like FROM node:4-onbuild . Then do a docker build . This will produce an image with your application in it, ready to be run. This strategy is known as the Docker strategy in an OpenShift BuildConfig. Another strategy is using the s2i...

Red Hat JBoss Developer Studio Logo
Article

JBoss Tools and Red Hat Developer Studio Maintenance Release for Eclipse Neon.3

Jeff Maury

JBoss Tools 4.4.4 and Red Hat JBoss Developer Studio 10.4 for Eclipse Neon.3 are here waiting for you. Check it out! Installation JBoss Developer Studio comes with everything pre-bundled in its installer. Simply download it from our Red Hat Developers and run it like this: java -jar devstudio-<installername>.jar JBoss Tools or Bring-Your-Own-Eclipse (BYOE) JBoss Developer Studio require a bit more: This release requires at least Eclipse 4.6.3 (Neon.3) but we recommend using the latest Eclipse 4.6.3 Neon JEE Bundle since...

Red Hat CDK
Article

Node, S2I and Docker

Lucas Holmquist

(Edit: November 22, 2019) The Node images used in this post, both community centos7 and product , are no longer being updated and maintained. For community images, please use the Universal Base Image (UBI)-based node images located here: registry.access.redhat.com/ubi8/nodejs-10 For a fully supported Product version of Node.js, please check out the Red Hat Software Collections Node.js image, RH SCL Node.js . Intro I like Node.js and I like Docker. While I am not an expert on either, I do pretend...

Article Thumbnail
Article

Build your first application using Node.js v4 on RHEL 7 with containers and Red Hat Software Collections

mguerett

Get started building Node.js v4 applications in docker containers on Red Hat Enterprise Linux in under 15 minutes. Introduction and Prerequisites In this tutorial, you will learn how to start building Node.js v4 applications in docker containers on Red Hat Enterprise Linux. In order to build and run containers you will first install docker on your Red Hat Enterprise Linux 7 system. You will use the Node.js v4 container image from Red Hat Software Collections (RHSCL) 2.2 as the basis...

Article Thumbnail
Article

Data Encapsulation vs. Immutability in Javascript

Lance Ball

A while ago, I wrote a fairly long post attempting to shed some light on a few things you can do in your JavaScript classes to enforce the concept of data encapsulation - or data "hiding". But as soon as I posted it, I got some flak from a friend who is a Clojure programmer. His first comment about the article was this. Mutability and data encapsulation are fundamentally at odds. Eventually, he walked that back - but only just...

Article Thumbnail
Article

Build your first application using Node.js with Red Hat Container Development Kit (CDK)

MGuerette

Get started building Node.js applications in docker formatted containers using the Red Hat Container Development CDK (CDK) 2. Just 3 easy steps. Introduction and Prerequisites In this tutorial, you will learn how to start building Node.js applications in docker formatted containers using the Red Hat Container Development Kit (CDK) 2 on Red Hat Enterprise Linux. You need to have CDK 2 installed and should have downloaded the Red Hat Enterprise Linux vagrant box for your system. See the CDK 2...

Article Thumbnail
Article

Node Package Manager 4 --- Changes to Prepublish (NPM)

Lucas Holmquist

NPM 4 was released recently, about 2 weeks ago, and with it came some major changes. Some breaking, some not, but there is an interesting deprecation that happened with regards to the prepublish script. Currently, if you had a prepublish entry in your package.json: { scripts: { prepublish: "nsp check" } } This would be run whenever you performed a npm publish . Which is probably what you would expect with a name like prepublish. Another thing was also happening...

Article Thumbnail
Article

Node 7 and Promise Rejections - Please Handle them

Lucas Holmquist

Node.js 7.0.0 was released just last week, and the announcement dropped a bombshell. I'm guessing the following announcement might freak some people out: DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. While the UnhandledPromiseRejectionWarning has been in node since 6.6.0 , this deprecation warning is new --- basically, it means you've rejected a promise in your code, but you are not handling it...

Article Thumbnail
Article

Improving user experience for mobile APIs using the cloud

Evan Shortiss

For your end users, one of the most important aspects of your API is the perceived response time --- if your mobile application takes an excessive amount of time to load data, users will get frustrated. In this series of blog posts, we’ll cover three ways to approach building a RESTful API that leads to better user experience by minimizing perceived response time. These strategies include: processing requests quickly, reducing payload sizes, and eliminating requests entirely, or only downloading data...

Article Thumbnail
Article

Checking node.js dependencies with SZero - Never lose track again.

Lucas Holmquist

Node.js is a JavaScript runtime built on top of Chrome's V8 JavaScript engine . It is highly event-driven, and leverages non-blocking I/O model that makes it lightweight, efficient, and incredibly productive to use. It's that last bit, "productive", that I want to focus on today. One of the things that i feel makes Node(and NPM) so great is the ease in which you can add and use third-party modules. As most node.js developers know, to start using an external module...

Article Thumbnail
Article

Why should I use Node.js: The Non-blocking Event I/O Framework?

Cesar Valdez

Objective Some days ago, I was having an argument with a few Java developers about Node.js, they asked questions like “why should I use that?” or “what’s the benefit?”, I told them by memory that Node.js is an event driven I/O, and thanks to that you will end up writing very efficient server-side applications. They come back saying that they can get the same effect using threads. Thing is I wasn't fully prepared to explain the difference, I had a...

Article Thumbnail
Article

Node.js 4.4, Python 3.5, and Ruby 2.3 Get Started guides on developers.redhat.com

Rob Terzi

On developers.redhat.com you can find short, focused guides to help you start developing with a number of Red Hat technologies. With the recent release of Red Hat Software Collections (RHSCL) 2.2 , a number of Get Started guides have been updated to use the newest software collections, such as Node.js 4.4, Python 3.5, and Ruby 2.3. These guides give you the steps you need to install the software and get to a simple "Hello, World" in a few minutes. The...