Skip to content

matthewbush55/employee-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management System

License: MIT

Table of Contents:

Description

This application allows users to manage a database of employees. Information includes employee id, name, role, department, and salary information. New employees, departments, and roles can be added as needed. It also displays all employees with their information in a tabular format. This app is CLI-based and uses node.js, JavaScript, Inquirer, mySQL, dotenv, and ascii-art.

Walkthrough

Link to Walkthrough

Installation

After cloning the repository, install necessary dependencies by adding the following items to you package.json file and running npm i:

"asciiart-logo": "^0.2.6",
"console.table": "^0.10.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"inquirer": "^8.1.2",
"mysql2": "^2.3.0",
"sequelize": "^6.6.5"

NOTE: You may also want to add node_modules to your .gitignore file to prevent unnecessary library uploads to your repository.

Database Setup:

  1. Create the database by running the contents of the schema.sql file in mySQL.
  2. Seed the database by running the contents of the seeds.sql file mySQL.

Usage

After pulling down the repository, you must create a.env file in the root directory and complete the below required environmental variables you chose when you setup your database.

DB_HOST=<usually localhost>
DB_USER=<username to connect to database>
DB_PASS=<password to connect to database>
DB_NAME=<name of database>
DB_PORT=<port to connect to database>

When that is complete, start the app by running npm start in your terminal or CLI. Then, use the arrow keys to select an option and press ENTER. Complete the prompts and continue to choose other options until you are finished. At that time, you can exit the app by choosing QUIT.

License

This project is licensed under License: MIT

Contributing

To contribute to this project (or any others), please contact me using the information in the Questions section below or by submitting a pull request.

For more information on project contribution guidelines, please reference Contributor Covenant

Questions?

If you have any questions, please feel free to reach out. Thanks!

GitHub: https://github.com/matthewbush55

Email: [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published