This command-line application allows users to manage departments, roles, and employees in a company database. Users can view and manipulate data related to departments, roles, and employees using a simple and intuitive interface.
- View all departments
- View all roles
- View all employees
- Add a department
- Add a role
- Add an employee
- Update an employee role
When selecting this option, the application displays a formatted table showing department names and department IDs.
When selecting this option, the application displays a list of job titles, role IDs, the department each role belongs to, and the salary for each role.
Selecting this option presents a formatted table with employee data, including employee IDs, first names, last names, job titles, departments, salaries, and the managers to whom employees report.
Users are prompted to enter the name of a new department, which is then added to the database.
Users can add a new role by providing the name, salary, and department for the role. The new role is added to the database.
To add a new employee, users are prompted to enter the employee's first name, last name, role, and manager. The application then adds the new employee to the database.
Users can update an employee's role by selecting the employee to update and specifying the new role. The application updates the employee's information in the database.
- Clone this repository to your local machine.
- Run
npm installto install the required dependencies.
- Run the application using the command
node app.js. - Follow the on-screen prompts to perform various tasks related to department, role, and employee management.