Employee-Tracker

License: MIT

badmath badmath badmath

Table of Contents

📝

Description

This app is using NodeJs and MySQL to creat an employee database. Using the SQL databse to creat a command-line application interfaces that allow non-developers to easily view and interact with information stored in databases.

🚀

Mock-Up

The following animation shows the database creation and seeding:

📸 Creat and seed the database.

The following animation shows a mock-up of the app functionality:

Test results using jest.

Youtube videos to demonstrate the project

🔴📺

🛠️

installation

npm init
npm i

this will install the following dependencies

    "colors": "^1.4.0",
    "dotenv": "^10.0.0",
    "express": "^4.17.1",
    "inquirer": "^8.1.2",
    "mysql2": "^2.3.0"
  }

📚

Start the app

To start you may need to run the following command and answer the prompt question with an approperiate answer.

  mysql -u root -p

  source db/schema.sql;
  source db/seeds.sql;
  quit

npm start

questions

You will be asked to do:

  * view all departments
  * view all roles
  * view all employees 
  * add a department
  * add a role
  * add an employee
  * update an employee role
  * exit

Technologies

MySQL NodeJS Express.js

Websites


© 2021 Mehdi Mahmud