CazB67 / employee-summary

A Node CLI that takes in information about employees and generates an HTML webpage that displays summaries for each person.
MIT License
0 stars 0 forks source link

Team Generator - Employee Summary

Object Oriented Programming and Test Driven Development

Description

GitHub repo size
GitHub issues

The task was to build a software engineering team generator command line application. The application prompts the user for information about the team manager and then information about the team members. The user can input any number of team members, and they may be a mix of engineers and interns. This application also needed to pass all unit tests. When the user has completed building the team, the application will create an HTML file that displays a nicely formatted team roster based on the information provided by the user.

Table of Contents

  1. Installation
  2. Usage
  3. Technologies
  4. Credits
  5. Contributing
  6. Tests
  7. Bugs
  8. Licence

Installation

  1. Write code to build out Engineer, Intern and Manager classes
  2. Write code to use inquirer to gather information about team members and to create objects for each team member.
  3. Call the render function and pass in employees array.
  4. Create output folder.
  5. Using the HTML returned, write it to a file named team.html in the output folder.
  6. Run tests
  7. Add CSS

Usage

To use this application run the following in the command line:

node app.js

The user is then prompted with a series of questions like so.

Command Line

When the user has finished answering the questions a team.html file is generated with all the information. It looks like so.
Generated HTML

Technologies

NPM, Node js, fs, inquirer, Javascript, Jest(for testing)

Credits

Contributing

Contributor Covenant

Tests

Tests

To run tests, run the following command: ​

npm run test

Bugs

There is an asynchronous issue with github validation I think. After a new engineer has been added. The app gets stuck on the next employee's name. The problem is resolved by pressing enter but I would rather it not be there.

License

License