es6

10. Inquirer Users πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ—οΈ Build CLI App with inquirer

Work with a partner to implement the following user story:

  • As a developer, I want to create a command-line application that takes in input from the user and does something with it.

Acceptance Criteria

  • It’s done when I have initialized my repository with a package.json file by running npm init -y.

  • It’s done when I have installed inquirer and added it to my list of dependencies by running npm i inquirer --save.

  • It’s done when the application asks the user, “What is your name?”

  • It’s done when the application asks the user, “What languages do you know?”

  • It’s done when the application asks the user, β€œWhat is your preferred method of communication?”

  • It’s done after I have written those responses to a file.

πŸ’‘ Hint

Why do we need to use JSON.stringify? How can we use the npm page for inquirer to see how to use checkboxes and lists?

πŸ† BONUS

If you have completed this activity, work through the following challenge with your partner to further your knowledge:

  • How would you format your JSON? Can you generate the name of your user file from the user input?

Use Google or another search engine to research this.


βœ… Solutions

Solutions Click Here