GithubHelp home page GithubHelp logo

jpbrickhouse / mysql-employee-tracker Goto Github PK

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

A node.js command-line application that interfaces with MySQL, allowing the user to dynamically manage and update an employee database.

JavaScript 100.00%
mysql database employee-management directory

mysql-employee-tracker's Introduction

MySQL-Employee-Tracker

License: MIT

DESCRIPTION

A node.js command-line application that interfaces with MySQL, allowing the user to dynamically manage and update an employee database

SCREENSHOTS

Main Menu of the Application

Main Menu

View All Employees

Viewing All Employees

View All by Department

Viewing All by Department

Adding an Employee

Adding an Employee

Updating an Employee's Role

Updating an Employee's Role

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 and MySQL, which are necessary for proper application functionality
  • Use the employeeSchema.sql and employeeSeeds.sql files to create and seed the database with initial data

USAGE

  • To use the "MySQL Employee Tracker" application...
  • (This assumes that the database has been created and seeded)
  • Use the command line to locate the cloned repo and make it your current directory
  • Simply type node index.js in the command line
  • A series of prompts will inquire about the following items:
    • View All Employees
    • View All Employees by Department
    • View All Employees by Role
    • Add department
    • Add role
    • Add employee
    • Update employee role
    • Exit
  • Many of these prompts have subsequent sub-prompts, asking for additional information
  • Once the necessary information has been collected, calls are made to and from the MySQL database

Video showing usage of the successfully deployed application:

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

LICENSE

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

CONTRIBUTING

https://github.com/JPBrickhouse

REFINEMENTS

While the application works beautifully, there is always opportunity for improvement and refinement:

  • Utilize constructors to standardize the creation and syntax of MySQL calls
  • Instead of using nested functions and commands, compartmentalize individual tasks contained within separate functions, and simply call to those functions
  • Attempt to DRY out the code (i.e. "Don't repeat yourself")

QUESTIONS

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

mysql-employee-tracker's People

Contributors

jpbrickhouse avatar

Watchers

 avatar

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.