As a manager, I want to be able to dynamically and quickly create an HTML file with employees' information using answers provided from Inquirer NPM.
To dynamically and quickly create a team HTML page, Inquirer NPM was utilized to:
- Generate command-line questions to the user.
- The user input was gathered and added as information to employee templates to create HTML pages.
- Create a .gitignore file and include node_modules? and .DS store. This ensures that the node_modules directory isn't tracked or uploaded to GitHub.
- Use the command-line, npm install, to install Inquirer NPM.
- To start answering questions to create the HTML file, use the command, node app.js.
- Inquirer NPM is used to prompt the user to provide information regarding their employee teams to create their HTML pages.
- fs.writeFile is used to render the HTML.
- Once the user's information regarding:
- name, id, email, member's role, then subsequent user role questions are served:
- Manager - office, Engineer - Github Username, and Intern - school name.
- An HTML file with the user's reponses regarding their team is created.
- JavaScript
- Inquirer NPM
- .gitignore
- Git Bash
© 2020 Kristina Hamilton and Trilogy Education Services, a 2U, Inc. brand. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.