weatherdest v1.0.0
Weather Dest
File
Instructions
Take a moment to run the
weatherdest.jsapplication. (Try to figure out what it takes to run on your own!)Then, with a partner, spend a few moments answering the following questions:
What does the code do?
How does it work at a general level?
How does it work at a line level?
NPM Init/Install
Navigate to the root of your project folder
Then do the following:
Create a
package.jsonfile (i.e. runnpm init)Add your dependencies to the
package.json(i.e. runnpm install <package-name1>andnpm install <package-name2>)Confirm that you now have a
node_modulesfolder with the<package-name1>and<package-name2>packages as a resultFinally, re-run your
weatherDest.jsto confirm that it still works as expected
Now delete your
node_modulesfolder again but keep yourpackages.jsonfile. This time...Simply run
npm installornpm iConfirm that you once again have a
node_modulesfolder with your packages listed as dependenciesFinally, re-run
weatherDest.jsto confirm that it still works as expected
6 years ago