I thought of sharing on how we ended up having the NewRelic plugin for a SpringBoot applications. This was a dockerized SpringBoot-REST application. The newrelic agent is actually added as a javaagent plugin during the start process. I’ve seen some implementations where they had the newrelic-agent checked into the codebase or into a base docker image. Felt it was a code smell to take either way. So, this is what we did:

  • Place the newrelic.yml in the root directory of the application.
  • Added the below configurations and dependencies in the build.gradle.
configurations {
//other configurations if any...
newRelic
}
dependencies…

Webstorm setup to run specific tests.

When we started, we were running the tests from the terminal but this resulted in several keystrokes and increased wait time as the tests increased. We follow the ES2015 standard and are using mocha for the tests. When the tests were running from Webstorm, it was failing because of its inability to figure out the syntax. This is where babel transpile can help. The following steps can help to setup Webstorm for running mocha tests against ES2015 standard.

Setup:
- Press ⌘+⇧+A and type in ‘Select Run/Debug Configuration’ and select the prompted one from the…


Another day of 90% coding. These are the days you feel more productive than usual.

  • Continuation of getting redux to work for the application.
  • We are using thunkMiddleware as some of our actions require taking to the signalR hub whose methods return a Promise.
  • Also, found a cool Redux dev tool with which you can validate your state after each action dispatch. You’ll use them in the main App component as follows:
import React from 'react';
import {render} from 'react-dom';
import thunkMiddleware from 'redux-thunk';
import
{ createStore ,applyMiddleware,compose } from 'redux'
import
{ Provider } from 'react-redux'
class App extends…

This week most of the work was centered around ReactJS and its associated library.

  • Started out on a cool project at work that’s pretty critical for business.
  • After the inception, the team decided to build it as a single page app because of the heavy front-end interaction needed.
  • We used ReactJS in the previous product and the experience was interesting. So, decided to take the same route.
  • Redux followed soon as its a good tool to manage data flow and state.
  • One of the senior devs introduced us to enzyme which is a cool framework for testing React components. …

It’s been a while since I wrote something. For the past few years, I’ve been solving pretty cool problems and was so immersed into it that I didn’t get much time to write again.

The writing space have changed a lot and after looking at several things, I’ve noticed that medium is a good medium to write again. Without much ado, starting again. Most of the posts are going to be a brief dev log and some if time permits, will be detailed analysis.

Glad to reach out to you all soon.

Sudhin Varghese

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store