This terminal project tracks the departments, roles and employees in the database. It prompts users with choices using Inquirer and logs the result to the terminal using console.table.
- run
git@github.com:RuxinQu/employee-tracker.git
on the terminal to git clone the repo. - then run
npm install
to download the packages.
- run
npm start
then the user is presented with all the choices. - choose "View all departments", "View all roles" or "View all employees", the user will be presented with all the department, roles or employees.
- choose "View budget", the user can select a department and see the combined salary of that department.
- choose "Add a department", "Add a role","Add an employee", the user can answer the prompts and add new data to the database.
- choose "Update an employee role", the user can select an employee and change the role.
- choose "Delete a department" the user can delete a department.
- choose "Quit" the user can quit the program.
View the demo video of this project HERE.
This project is under MIT license
https://opensource.org/licenses/MIT
- mysql2
- console.table
- inquirer
- figlet is used to print the ascii text.
Contact me via: ruxinqu@gmail.com if you have addition questions.