- Description
- User Story
- Features of the Application
- Preview of the Employee Template Generator
- Links
- Installation
- Usage
- License
- Tests
- Contributing
- Questions
The Employee Template Generator is a command line application that is capable of generating employee templates - that also includes basic contact information for each member of the team - based on a user's input. The application also renders the inputted information onto a new HTML page that one can easily access.
When launched, the application prompts the user for information about the team manager and then information about the individual team members. The user can input any number of team members - a mixture of engineers and interns - to fit their needs. Summaries for each employee is rendered onto the HTML page. In conjunction with creating the node application, multiple tests were run (using the jest dependency) to ensure that the code was maintainable.
AS A manager
I WANT to generate a webpage that displays my team's basic information
SO THAT I can have quick access to emails and Github profiles.
GIVEN a command-line application that accepts user input
WHEN I am prompted for basic information about my team members
THEN a file is rendered with each team member's basic information, such as their name, role, school information, Github username, and office number.
The command line application renders an HTML page with summaries for each employee:
The following animation demonstrates the application functionality:
The following image demonstrates the application functionality and provide a closer look at the user output being generated:
The following image shows the user input from the node application being pushed into the team.html
file:
The application requires the following dependencies and/or package managers:
npm install inquirer
An example of usage when first launching the application to access the application from the command line:
node app.js
This application does not currently have any licenses.
The user is not permitted to use, modify, or share any parts of it. Though the code for this application is hosted on Github, where you are allowed to view and fork the code, this does not imply that the user is permitted to use, modify, or share the contents of this application for any purpose.
The tests for this application - which helped to build the necessary classes - were run (with Jest) using the command:
npm run test
The tests for this application looked at the constructors of the application (employee, manager, engineer, and intern) and verified that certain arguments and methods were coded correctly to get an expected result.
The following images demonstrate the failed tests of the application and where the failures occurred in the program:
The following animation demonstrates the application passing the tests for all four constructors:
If you would like to contribute to this repository, please contact me via Github.
If you have any questions, comments, or issues regarding this command line interface application, please do not hesitate to contact me via Github.