An open API service indexing awesome lists of open source software.

https://github.com/minusinfinite/employee-managment-cli

Manage your Company via you Command Line
https://github.com/minusinfinite/employee-managment-cli

Last synced: about 1 year ago
JSON representation

Manage your Company via you Command Line

Awesome Lists containing this project

README

          

# Employee Managment CLI

A CLI tool for Interfacing with a local Employee database.

[Video Demo](https://youtu.be/5_asQPjHZGw)

## Documentation

[Installation](#installation)

[Local Setup](#local-setup)

[Methods](#Methods)

[Examples](#examples)

[Credits](#credits)

## Installation

Clone the repo

```Shell
git clone https://github.com/minusInfinite/simple-notes.git
cd /simple-notes
```

This application uses the package manager Yarn - https://yarnpkg.com/
You may need to insure Yarn Classic is installed globally beforehand

```Shell
npm install -g yarn
yarn install
```

If there are any issues, you may need to just run `yarn install` again to setup the Plug and Play system correctly.

You will also need to have a MySQL server to connect to.

## Local Setup

To setup your local environment add a `.env` file with the following variables

```env
DBNAME=
DBUSER=
DBPASS=
DBHOST=
```

The database schema and demostration seed database is availalbe in the `/db` folder

```mysql
mysqlsh.exe --sql -u

mysql> \. schema.sql
mysql> \. seed.sql

```

Once the database is setup you will be able to run the application with `yarn start`

## Methods

From the CLI you will see the following options

```Shell
View All Departments - View a table of all departments
Add Department - Add a new Department
View All Roles - View a table of all Title, Salary and the Department
Add Role - Add a new Role, inputing the Title, Salary and Department
View All Employees - View Employees with their Title, Salary, Department and Manager
Add Employee - Add a new Employee, inputing their Name, title and manager. There is an option of "None" to allow them to be a manager
Update Employee Title or Manager - You will be given an option
Quit - Close the application
```

## Examples

[Video Demo](https://youtu.be/5_asQPjHZGw)

![The CLI when the application is started](./assets/example1.png)

![The CLI when a table is selected](./assets/example2.png)

## Credits

This application has the following depenancies

- Chalk -
- Console-Table-Printer -
- DotENV -
- inquirer -
- mysql2 -

Running on NodeJS -

ASCII Text Logo generated at