GithubHelp home page GithubHelp logo

jpbrickhouse / templateengineemployeesummary Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22.3 MB

A node.js command-line application that generates an HTML file, dynamically displaying a team's employee data and credentials.

JavaScript 74.66% HTML 25.34%
template-engine employee-directory html javascript nodejs command-line

templateengineemployeesummary's Introduction

Template Engine for Teams and Employees

License: MIT

DESCRIPTION

A node.js command-line application that generates an HTML file, dynamically displaying a team's employee data and credentials.

SCREENSHOTS

Working application question prompts

Question Prompts and App Usage

Generated HTML File

Generated HTML File

Running Tests

Running Tests Running Tests

TABLE OF CONTENTS

INSTALLATION

  • Clone the repo for use on your local machine
  • Use the command line to locate the cloned repo and make it your current directory
  • Type npm install in the command line
  • This will install the node module packages and dependencies, including inquirer, which is necessary for proper application functionality
  • Additionally, create a folder entitled output in the directory; this is where the final generated html file will be located once it has been written

USAGE

  • To use the "Template Engine for Teams and Employees" application...
  • Use the command line to locate the cloned repo and make it your current directory
  • Simply type node app.js in the command line
  • A series of prompts will inquire about the following items:
    • What is the employee's name?
    • What is the employee's id number?
      • Validation ensures that the id is a valid number
    • What is the employee's email address?
      • Validation ensures that the email is a valid email address
    • This employee is what type of person? (Manager, Intern, Engineer)
    • Depending on the type of person, a subset of questions is asked:
      • Manager: What is the manager's office number?
      • Intern: What school does this student attend?
      • Engineer: Please enter your GitHub username (not the URL, just the username)?
    • Following this, a prompt inquires if the user has more employees to add
    • If they select yes, the series of previous prompts repeats
    • If they select no, the prompts terminate
  • When the prompts have terminated and all the inquires have responses, the program generates an HTML file, dynamically displaying a team's employee data and credentials.

Video showing usage of the successfully deployed application:

https://drive.google.com/file/d/1_bJal9IGj56O66INB5FLBOPVpjCINFSx/

LICENSE

License: MIT License
https://opensource.org/licenses/MIT

CONTRIBUTING

https://github.com/JPBrickhouse

TESTS

  • There are several tests included with the repo
  • These tests confirm that the classes and subclasses are built correctly
  • To run the tests...
    • Use the command line to locate the cloned repo and make it your current directory
    • Simply type npm run test in the command line
    • The output information will confirm whether the tests have passed or failed

QUESTIONS

Feel free to visit the following GitHub for more information: https://github.com/JPBrickhouse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.