Git Product home page Git Product logo

employee-tracker's Introduction

Employee-Tracker

Employee Tracker is a command line application that interacts with a MySQL database to keep track of departments, roles and employees within an organization.


Description

This application uses Node.js and MySQL to create a database used to track employees in a company. It creates three tables, "departments, roles and employees" that link together to keep track of each employee and the roles and departments they work in. A user can view each of these tables, and create new rows within them, as well as update employee roles.

Usage

The following GIF demonstrates the usage and features of the application:

gif of the application

The following screenshots demonstrate the main menu and a few of the features included in this app.

screen shot of app main menu

screenshot of view departments feature

screenshot of view employees feature


Installation

To run this application, first install all necessary packages using the following command:

npm i

Next, navigate to the /db/ folder in the command line and login to MySQL in the command line using

mysql -u root -p

After inputting your password, create the database and seed it with data if you like using the SOURCE command:

SOURCE schema.sql;

SOURCE seeds.sql;

Finally, start the application with node.

node index.js

License

MIT

Challenges

I tried to modularize my application as much as possible, but struggled to get a few things working when split across multiple files. In the future, I'd like to refactor this so that users can add and update information by selecting from lists, rather than needing to know the department or role id to update or create. I'd also like to implement some of the bonus features described in the assignment, like the ability to delete data through the application, and more sorting options when viewing various tables, like viewing all employees who report to a particular manager.

Acknowledgments

Thanks to Seamona Stewart as always for hosting our study group sessions on Zoom.

employee-tracker's People

Contributors

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