• Log inStart now

Set up your lab environment

5 min


This procedure is part of a lab that teaches you how to monitor your application with New Relic. If you haven't already, check out the lab introduction.

Before you can walk through the lab proper, you need to spin up your Angular application.

Step 1 of 7

Clone the lab repository.

git clone https://github.com/newrelic-experimental/NewRelic-basics-lab-material.git
Step 2 of 7

Navigate to the root directory of your application, install dependencies, and run the application.

cd NewRelic-basics-lab-material/FoodMe
npm install
node ./server/start.js
Go to http://localhost:3000/

This opens your FoodMe application in your browser.

FeedMe homepage

Enter your name and delivery address, and click Find Restaurants to get started.

nearby restaurant list

Here, you see a list of restaurants where you can order food.

Step 3 of 7

Choose a restaurant.

choose a restaurant

Step 4 of 7

Select an item or two.

select food

Step 5 of 7

Click Checkout.


Step 6 of 7

Enter the following fake card information.

fake card

Click Purchase to place the order:


Next, you use a simulator to generate more traffic to your application.

Step 7 of 7

In another terminal window, navigate to the root directory of your application, and run the load generator.

# Navigate to the root directiory of your application
cd NewRelic-basics-lab-material/FoodMe/simulator
# Create a virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install the simulator's dependencies
pip install -r requirements.txt
# Run the simulator
python simulator.py
====== WebDriver manager ======
Current google-chrome version is 99.0.4844
Get LATEST chromedriver version for 99.0.4844 google-chrome


This load generator assumes you have Google Chrome installed on your computer. If you're using a different browser, either skip this step and generate traffic manually, or install Google Chrome.

Now, that you know how to run your application, it's time to instrument it. In the terminal windows that are running your application and simulator, press <CTRL-C> to shut them down. With your app shut down, you'll be able to update your code to introduce monitoring tools.


This procedure is part of a lab that teaches you how to monitor your application with New Relic. Now that you've set up your environment, instrument your application with APM agent.

Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.