This week’s project involved creating a Command-Line Interface (CLI) application that allows non-developers to easily interact with and manage a company's employee database. The goal was to build a simple Content Management System (CMS) to view and modify departments, roles, and employees.
The application was built from scratch using Node.js, Inquirer, and MySQL.
Because this is a backend CLI application, it cannot be deployed on a live server. Instead, a walkthrough video has been provided to demonstrate its full functionality and how all the acceptance criteria have been met.
- Node.js
- Inquirer (v8.2.4)
- MySQL
- console.table (for easy data display)
- MySQL2 npm package
- View all employees, roles, and departments
- Add a new employee, role, or department
- Update an employee’s role
- View employees by manager or department
- Delete employees, roles, or departments
- Calculate total utilized budget of a department
- Clone this repository
- Run
npm installto install dependencies - Create a
.envfile and provide your MySQL credentials - Use the
schema.sqlandseeds.sqlto set up your database - Run the application using: