team-profile-generator

Team Profile Generator

</br>

Languages Top Language Code Size Repo Size Total Lines Inquirer Version Last Commit Issues GitHub closed issues Followers

Description

Create an HTML profile for your whole developer team by answering questions on the command line.

Table of Contents

Installation

Steps to install application:

  1. Clone repository.
  2. In the directory with server.js run npm install
  3. Start server and answer prompts
  4. HTML Generated
git clone git@github.com:kqarlos/team-profile-generator.git
npm instal
node server.js

Sample Site

Usage

Screenshots

  1. Working app

Image Site

  1. Example of a team profile generated

Site

Snippets

  1. nextEmployee();

nextEmployee() {
    this.promptRole().then((role) => {
        if (role === "Exit") {
            this.renderHTML();
            this.end();
            }
        else {
            this.promptInfo(role).then((data) => {
                switch (role) {
                    case "Manager":
                        var employee = new Manager(data.name data.id, data.email, data.officeN);
                        break;
                    case "Engineer":
                        var employee = new Engineer(data.name, data.id, data.email, data.github);
                        break;
                    case "Intern":
                        var employee = new Intern(data.name, data.id, data.email, data.school);
                        break;
                }
                this.employees.push(employee);
                this.nextEmployee();
            });
        }
    });
}
    
  1. promptInfo(role)

    //prompt user for employee information and return it
    promptInfo(role) {
        switch (role) {
            case "Manager":
                return inquirer.prompt(this.managerPrompt).then(function (data) {
                    return data;
                });
                break;
            case "Engineer":
                return inquirer.prompt(this.engineerPrompt).then(function (data) {
                    return data;
                });
                break;
            case "Intern":
                return inquirer.prompt(this.internPrompt).then(function (data) {
                    return data;
                });
                break;
        }
    }

Credits

Author

Built With

</br>

HMTL CSS Javascript Bootstrap Node Inquirer Jest

License

</br>

MIT license