Team profile generator is a node command line application that takes in information about employees using the Inquirer package and generates an HTML webpage that displays summaries for each person.
One of the most important aspects of programming is writing code that is readable, reliable, and maintainable. Oftentimes, how we design our code is just as important as the code itself.
Terminal | Generated Team Page |
---|---|
![]() |
![]() |
As a manager
I want to generate a webpage that displays my team's basic info
so that I have quick access to emails and GitHub profiles
1. Node.js :
Node.js is an open-source and cross-platform JavaScript runtime environment. A Node.js app is run in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking.
2. Inquirer NPM package :
Inquirer.js strives to be an easily embeddable and beautiful command line interface for Node.js.
3. Jest NPM Package :
- Delightful JavaScript Testing
- Complete and ready to set-up JavaScript testing solution.
- Failed tests run first. Fast interactive mode can switch between running all tests or only test files related to changed files.
- Clone this repository to use this application.
- Navigate to the 'Develop' folder. To install necessary dependencies, run the following command :
npm i
- Run this command to check all tests pass:
npm run test
- The application will be invoked with the following command:
node app.js
- Run commands listed in Installation.
- Running
node app.js
command will prompt user or manager series of questions to build team. - Once user finished building team, a HTML page 'team.html' will be generated in the 'output' folder.
- Open this HTML file in the browser to see your team page.
- Used Node.js to build application which generates 'team.html' file dynamically by user's input.
- Npm package 'Inquirer' is used.
- 'Jest NPM Package' is used to follow test driven development and ensured that all tests pass.
- Validated user input for email, ID's and office number.
This project is licensed under MIT license.
Pull requests are always welcome!
- If you have any questions about the repo, open an issue or contact me directly at Email.