Skip to content

LeahLucas2192/super-duper-pancake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Tracker

Employee Tracker is a Node.js application for managing departments, roles, and employees within an organization. It provides a command-line interface (CLI) for performing various actions such as viewing, adding, updating, and deleting department, role, and employee records in a MySQL database.

Video Demo

Video

Features

  • View all departments, roles, and employees
  • Add new departments, roles, and employees
  • Update existing employee details including name, role, and manager
  • Interactive command-line interface with Inquirer.js for user interaction
  • Error handling and logging for better application stability

Prerequisites

Before running the application, ensure you have the following installed:

  • Node.js
  • MySQL database

Installation

  1. Clone the repository:

    git clone <repository_url>

Navigate to the project directory:

cd employeetracker

  1. Install dependencies:

npm install

  1. Configure MySQL database connection:

-Create a '.env' file in the root directory -Add your MySQL database connection details:

DB_HOST=your_database_host DB_USER=your_database_user DB_PASSWORD=your_database_password DB_NAME=your_database_name

  1. Initialize the database:

Run the provided SQL script (schema.sql) to create the necessary database schema and tables.

  1. Start the application:

node server.js

Usage

Follow the on-screen prompts to navigate through the application and perform various actions such as viewing, adding, updating, and deleting records.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Employee Tracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published