As a manager, I want to create a webpage that displays my team's essential information, such as their email addresses and GitHub profiles, so that I can access it quickly. To achieve this, I need a functional Node.js command-line application that can gather necessary details about my software engineering team members. The application should pass all the provided tests without any errors and generate an HTML webpage that showcases a summary for each person on the team.
- Create a command-line application that accepts accepts user input using the provided starter code.
-
Create classes for each team member provided and export them. The tests for these classes (in the
_tests_directory) must ALL pass.- The first class is an
Employeeparent class with the following properties and methods:nameidemailgetName()getId()getEmail()getRole()—returns'Employee'
- The other three classes will extend
Employee. - In addition to
Employee's properties and methods,Managerwill also have the following:officeNumbergetRole()—overridden to return'Manager'
- In addition to
Employee's properties and methods,Engineerwill also have the following:github—GitHub usernamegetGithub()getRole()—overridden to return'Engineer'
- In addition to
Employee's properties and methods,Internwill also have the following:schoolgetSchool()getRole()—overridden to return'Intern'
- Finally, although it’s not a requirement, consider adding validation to ensure that user input is in the proper format.
- The first class is an
-
Write code in
index.jsthat uses inquirer to gather information about the development team members and creates objects for each team member using the correct classes as blueprints.- When a user starts the application then they are prompted to enter the team manager:
- Name
- Employee ID
- Email address
- Office number
- When a user enters those requirements then the user is presented with a menu with the option to:
- Add an engineer
- Add an intern
- Finish building the team
- When a user selects the engineer option then a user is prompted to enter the following and then the user is taken back to the menu:
- Engineer's Name
- ID
- GitHub username
- When a user selects the intern option then a user is prompted to enter the following and then the user is taken back to the menu:
- Intern’s name
- ID
- School
- When a user decides to finish building their team then they exit the application, and the HTML is generated.
- When a user starts the application then they are prompted to enter the team manager:
-
Call the
renderfunction (provided for you) and pass in an array containing all employee objects;- The
renderfunction will generate and return a block of HTML including templated divs for each employee!
- The
-
Create an HTML file using the HTML returned from the
renderfunction.- Write it to a file named
team.htmlin theoutputfolder. - You can use the provided variable
outputPathto target this location.
- Write it to a file named
-
npm install --save inquirer@^8.0.0
npm i jest
The application will be invoked by using the following command:
node index.js
This project is licensed under the MIT License.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
Link to the Walkthrough Video
Visit the generated Team Profile here
Follow me on GitHub at https://github.com/Astranag/
Feel free to reach out to me for any inquiries at stivinmavelil@gmail.com.
