freeCodeCamp Challenge Guide: Install and Require Helmet

Install and Require Helmet


Problem Explanation

For this series of lessons, it’s easiest to clone the glitch boilerplate project and follow the instructions there.
In this challenge you need to add and require helmet to your project.


Hints

Hint 1

You can search for packages on glitch somewhere when in your package.json file

Hint 2

After you add helmet, you need to require it in the myApp.js file


Solutions

Solution 1 (Click to Show/Hide)
  • In the package.json file, click the add package button, search for helmet, and click it to add it to your project.
  • Then, go in to the myApp.js file and require it by adding const helmet = require('helmet'); near the top of the file.

Note: Be sure to submit the link to the live demo of your project.