Git Product home page Git Product logo

employee-tracker's Introduction

Employee-Tracker

Description

The Employee-Tracker is an CLI application used to keep track of your businesses Departments, Roles, and Employees. My motivation for creating this application was to help anyone who owns a business keep track of their Departments, Roles, and Employees straight from the command line. During the process of building this application I learned how to utilize SQL to create a database, connect it to a server using mysql2, and then using queries to add data or view it depending on the user prompt. I struggled with creating queries to help join and add to my database. I also struggled with creating a relationship between the employees and manager.

Future Devlopment

For the future development of this application I plan on creating a better relationship between the manager and the employee keys within SQL. There is also a bug where viewing the tables won't start the inquirer prompt again that needs to be fixed. Also sometimes the tbales on the CLI are buggy.

Installation

  1. Git clone the repository using the following command: git clone [email protected]:StunnaDawg/employee-tracker.git
  2. Through the CLI cd into the employee-tracker directory
  3. Make sure to have nodejs(https://nodejs.org/) and Mysql(https://www.mysql.com/)
  4. Ensure to 'npm install' all the dependencies
  5. Run 'node index.js' to start the server and prompts
    • NOTE: When selecting 'View all Employeees', 'View all Roles', or 'View all Departments' you will need to RESTART using the command 'CTRL C' to stop the server and then 'node index.js' to restart the server due to a bug in the current version causing inquirer to stop.
  6. Answer the prompts to add your data to the tables.

Usage

Upon downloading the application make sure you do the following:

  • run 'npm install' so that the dependencies are installed
    • If the dependencies do not exist: run 'npm i [email protected]', 'npm i express', 'npm i mysql2', and 'npm i console.table' to download the latest version of each npm
  • run 'node index.js' to recieve the question prompts'

Screenshots

Alt

Alt

Alt

Demo Video Link

Link: https://watch.screencastify.com/v/mxDm7DgpvA7pB21UMRiv

Dependencies

employee-tracker's People

Contributors

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