/empmanager

Emp. Manager is a CLI application to view and manage the departments, roles, and employees

Primary LanguageJavaScriptMIT LicenseMIT

empmanager

Emp. Manager is a CLI application to view and manage the departments, roles, and employees

MIT license GitHub forks GitHub stars

Welcome Screen

Table of Contents

Description

Emp. Manager is a CLI application to view and manage the departments, roles, and employees.

Demo

  • This is around 12 minutes of end to end demo. Please watch till end for all the operations.

Demo

Installation

To install dependencies, run the following command: npm install

Run

To run the application use node app command

Usage

  • You need to have the same DB Schema as used in the application.
  • For convinience schema file is provided with the project. The file path is /db/schema.sql

License

This project is licensed under the MIT license

Technical Details and Architecture

Dependencies:

  • boxen
  • cfonts
  • chalk"
  • console.table
  • dotenv
  • inquirer
  • mysql"

Technical Description

emp.manager uses modular architecture. The app's entry point is app.js. App.js presents operations menu to the user and on userselection routes to appropriate enitity. The entity JS for example department.js in make use of entity specific ORM to perform the operations. There are 4 ORM code files in this project

  1. deptorm - Department Table ORM
  2. roleorm - Role Table ORM
  3. emporm - Employee Table ORM

The orm tables in turn make use of Database class defined in database.js to perform Database CRUD operations DMLs and DDL The architecture diagram below shows the interactions. Architecture Diagram

Questions

If you have any questions you can contact me direct at bhagat.abhijeet@gmail.com. Reach out to me at GitHub : bhagatabhijeet
Profile Picture
GitHub followers