Giter Site home page Giter Site logo

module12-challenge's Introduction

Module 12: SQL Challenge - Employee Tracker

License: MIT

Description

Employee Tracker is a command-line application to manage a company's employee database.

The application uses: MySQL2 to connect to a database and perform queries, Inquirer to interact with the user via the command line, and console.table to print MySQL rows to the console.

Table of Contents

Installation

To run your own version of the app do the following:

  1. Clone this git repo to your computer
  2. Create a MySQL database in your localhost using the data in the db directory (employee_tracker.sql, seeds.sql)
  3. Rename .env.EXAMPLE as .env and add your DB credentials
  4. Inside a terminal run npm install to get all the necessary dependencies

Usage

  • To start the app type: node server.js
  • When the application starts, a menu is presented with the following options: view all departments, view all roles, view all employees, add a department, add a role, add an employee, and update an employee role.
  • VIEW options present a formatted table showing the corresponding details: departments - names, ids roles - job title, role id, department id, salary employees - ids, first names, last names, job titles, departments, salaries, and managers that the employees report to
  • ADD options for department | role | employee show a prompt asking to enter the necessary information department - department name role - name, salary, and department employee - first name, last name, role, and manager
  • UPDATE employee role shows a prompt to select an employee to update and their new role

Video of Employee Tracker in action

License

MIT License

Tests

N/A

module12-challenge's People

Contributors

mbenitez1607 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.