GithubHelp home page GithubHelp logo

ruthtech / employee-tracker Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 6.0 5.35 MB

A solution for managing a company's employees using node, inquirer, and MySQL.

License: MIT License

JavaScript 82.51% TSQL 17.49%

employee-tracker's Introduction

Employee Tracker (Content Management System)

This command-line application manages a company's employees using node, inquirer, and MySQL.

Getting Started

You need to set up your MySQL database before you can run the code.

1. Download and unzip the code, and install the prerequisites, as explained in the "Installing" section of this README.
2. In your "employee-tracker-master" directory there is a "db" directory. In that directory there are two files: cms.sql and seed.sql. 
    a. Open your MySQL Workbench and run cms.sql to create the database and tables.
    b. Then run seed.sql to populate the database with some data. (Bonus points if you recognize the people in your database.)
3. Now that your database is ready to be queried, open index.js and enter your MySQL root password on line 9.
4. Open a Git terminal. Type "node index.js".

Prerequisites

  • Git terminal
  • Node
  • MySQL and MySQL Workbench (or the terminal instead of MySQL Workbench)

Installing

1. Go to https://github.com/ruthtech/employee-tracker and click on the "Clone or Download" button. 
2. Choose "Download ZIP". 
3. Unzip into a directory. If you're on Windows, open File Explorer and navigate to the download directory. Select the ZIP file, right click, and choose "Extract All". Accept the default location.
4. Once the file is unzipped, navigate to employee-tracker-master.
5. If you don't have the prerequisites installed, type the following:
   * npm install inquirer
   * npm install mysql
   * npm install console-table
6. Then use your Git terminal to execute index.js. 

Running the tests

There is no automated test suite for this command line application. Instead, I ran the following manual tests.

Manual tests

1. "View all employees"
2. "View all employees by department"
3. "View all roles"
4. "View all departments"
5. "Add department" followed by "View all departments" to confirm that the new department is there.
6. "Add employee" followed by "View all employees" to confirm that the new employee is there. 
7. "Add role" followed by "View all roles" to confirm.
8. "Remove employee" followed by "View all employees" to confirm.
9. "Update employee role" followed by "View all employees" to confirm.

You can see these tests run by viewing the provided GIF file employee-tracker.gif

Deployment

To deploy this on a live system, copy all of the files to your computer and follow the instructions in the "Installing" section followed by the "Getting Started" section. This is a command-line tool, not one that runs in the browser. There are no live pages to demonstrate.

You can see these tests run by viewing the provided animated GIF file employee-tracker.gif

Built With

Contributing

This project is not open to contributions.

Versioning

This project does not use versions at this time.

Authors

Ruth Lee

License

MIT

Acknowledgments

Thanks to the following:

employee-tracker's People

Contributors

ruthtech avatar

Stargazers

 avatar

Watchers

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