Click here to watch my video recording
Our task was to build to build a Node.js command-line application that takes in information about employees on a software engineering team, then generates an HTML webpage that displays summaries for each person. Testing is key to making code maintainable, so also we needed to write a unit test for every part of our code and ensure that it passes each test.
For development, you will only need Node.js and a node global package installed in your environment
$ git clone https://github.com/otivisan22/TEAM-PROFILE-GENERATOR
$ cd TEAM-PROFILE-GENERATOR
$ npm i
-
Install npm i
-
Install npm i jest:watch
-
Install npm i jest
-
Install npm i inquirer
-
Developed the team profile generator by creating the employee, engineer, intern and manager classes and after tested all the classes with jest test
-
npm run test:watch for the first round of tests
-
all tests has been successful
-
Using inquirer we have generated/prompt the questions
-
Created the init function in order to start the app and render the questions and answers
-
Used w while loop in order to destructed the object that each team member needed to rendered
-
The html file which is rendering the team profile card can be seen
$ npm start
$ npm run test:watch
$ npm run test