This is a node.js that generates an html with contact cards for employees of a specific team on a business by using a command-line application from a user's input using the Inquirer package.
This app has been tested using the Jest Testing Framework
- Fork repository
- Clone repository to local environment.
- Node.js must be installed.
- To install all the dependencies (Inquirer, Jest to perform tests) use the following command:
npm install
The application is invoked by using the following command (on the directory containing this project):
node index.js
The following questions will be prompted asking for the Manager details, followed by a list of options to select to input the details of Engineer and Intern or to generate the html:
Engineer questions:
Intern questions:
HTML will be generated on 'dist' folder under the name 'employee.html':
Mockup for the generated html:
This project is covered under the MIT license.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. Please note we have a code of conduct, please follow it in all your interactions with the project. Contributions follow the Contributor Convenant.
100% test coverage on classes using Jest package.
To run test:
npm run test