Skip to content

Employee Tracker is a Node.js CLI application for managing a company's employee information including departments, roles, and employee details. It uses inquirer for user input and stores the information in a MySQL database. It allows for viewing, adding, and updating employees, roles, and departments.

Notifications You must be signed in to change notification settings

Reggiejr44/mysql-employeetracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-employeetracker

Description

Employee Tracker is a Node.js CLI application for managing a company's employee information including departments, roles, and employee details. It uses inquirer for user input and stores the information in a MySQL database. It allows for viewing, adding, and updating employees, roles, and departments.

Table of Contents

Installation

  1. Clone this repository.

  2. Run ‘npm install’ from the terminal at the root directory of the local repository to install the required packages.

npm install mysql2 console.table inquirer figlet dotenv
  1. Create a .env file in the root of your project folder and add the following environment variables with the values for your database connection:
DB_USER=your_database_username
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
  1. Open up mysql enter info. In mysql run source schema and seed.sql and then exit
mysql -u root -p
source db/schema.sql
source db/seeds.sql
exit
  1. Save the file and run the following code in command line:
node index.js

Usage

Video Walkthrough Link

https://clipchamp.com/watch/dcfBFRwqwF4

Screenshot of Application Terminal

Screenshot

Questions

Reggiejr44
regprince788@gmail.com

About

Employee Tracker is a Node.js CLI application for managing a company's employee information including departments, roles, and employee details. It uses inquirer for user input and stores the information in a MySQL database. It allows for viewing, adding, and updating employees, roles, and departments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published