A command-line application for managing a company's employee database, using Node.js, Inquirer, and MySQL.
- Clone the repo:
git clone https://github.com/yourusername/CLI-Employee-Tracker.git
- Install NPM packages:
npm install
- Setup your
.env
file to include your MySQL credentials:
DB_USER=your_user
DB_PASSWORD=your_password
DB_DATABASE=your_database
To run the application, use the following command in your terminal:
node index.js
-
View all employees: Displays a table with employee data, including ID, first name, last name, role, salary, department, and manager.
-
Add employee: Prompts the user to input a new employee's first name, last name, role, and manager, and adds the new employee to the database.
-
Update employee role: Allows the user to select an employee and assign a new role to them.
-
View all roles: Displays a table with role data, including role ID, title, department, and salary.
-
Add role: Prompts the user to input a new role's name, salary, and department, and adds the new role to the database.
-
View all departments: Displays a table with department data, including department ID and name.
-
Add department: Prompts the user to input a new department's name and adds the new department to the database.
-
Quit: Exits the application.
This project is not licensed. See LICENSE
for more information.