Skip to content

Use this application to manage your company's employees, roles, and departments. Employee Manager uses a series of CLI prompts that will kick off queries to the MySQL database "employee_db" based on the user's input.

License

Notifications You must be signed in to change notification settings

calvinfreese/Employee_Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Manager

Table of Contents

Description

Use this application to manage your company's employees, roles, and departments. Employee Manager uses a series of CLI prompts that will kick off queries to the MySQL database "employee_db" based on the user's input.

Prompts

    • View all employees.
    • View all roles.
    • View all departments.
    • Add an employee.
    • Add a role.
    • Add a department.
    • Update an employee's role.
    • Update an employee's reporting manager.
    • View employees by manager.

See Screenshots for examples.

Installation

Technologies Used

Steps

    • Start by entering the following in your terminal: Git clone https://github.com/whackingMUFN/Employee_Manager.git
    • Change directory to Employee_Manager and enter npm install into your terminal. This will install all package dependencies.
    • Add node_modules to .gitignore.
    • Create a config.js file based on the template here.
    • If file config.js is created in another location other than the parent folder, remember to update server.js const credentials = require('./config') with the new relative path.
    • Replace <ID> in the user and password fields in config.js with the credential information for the database.
    • Copy Database and Table setup from ./db/scehma.sql
      • Paste into MySQL Workbench and execute.
    • Copy table data from ./db/employeeSeed.sql
      • Paste into MySQL and execute only the INSERT INTO ... VALUES (...) information code blocks for each table. This can be done by selecting/highlighting the desired code blocks and clicking the lightning bolt.
  • Start the application by running npm start

Screenshots

Employee Manager Tour - View All Employees/Roles/Departments

Tour

Add Employee

Tour

Add Role

Tour

Add Department

Tour

Update Employee Role

Tour

Update Employee Manager

Tour

Credits

This assignment was provided by Trilogy Education Services. Code was developed based on in class activities and lectures, MDN Reference Documents for JavaScript syntax, JSHint for JavaScript validation, mysqltutorial for reference documentation and examples, and various other online resources.

License

License MIT © 2020 Calvin Freese

About

Use this application to manage your company's employees, roles, and departments. Employee Manager uses a series of CLI prompts that will kick off queries to the MySQL database "employee_db" based on the user's input.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published