inspired by Lew's demo at AWS re:Invent 2020 because that was ✨awesome✨ and building on it.
Thanks for joining. Most of you will know New Relic perhaps for our Observability platform, for APM, but you might not know that you can build applications right on top of of our platform to make the most out of the telemetry that we collect. You can do this using the very same API's and components that our developers themselves use to build our products views.
So in this demo I am going to build an application in New Relic from scratch. All you need to know to build an app on NR1 is React.
It is super easy getting started. All you do is go to one.newrelic.com and click Build your own app. You're then taken to the quick start guide. From here you can get your API key and download the CLI. I've already done that so let's go and get started building an app.
So I do nr1: create
I can create a number of things. A NerdPack
is what we call an application in New Relic, and I am going to select that.
It suggests a name for me in case I can't think of one. I am going to roll with that.
So now we have an application and it is sitting on my laptop.
cd nerdlet
ls
So looking inside, you can see that this is just an NPM package. Inside the package is just React components.
npm i
I am going to install the dependencies. You can also add whatever other packages you want to make this more powerful.
code .
Let's open this in VS Code and take a look at the source
npm start
I will also run this from my laptop.
I can see my app is running and I am given a URL to go to. What you see here is the regular New Relic One URL but with nerdpacks = local which allows me to run the normal NR1 but my local application is put inside there.
So I'll go to that URL and open apps, and find my app. We can see what is running on my laptop is put in this UI.