-
Notifications
You must be signed in to change notification settings - Fork 0
Project ready for marking #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
luizfroes
wants to merge
31
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
474cb1b
added my package.json
luizfroes 1a5edf5
added my schema
luizfroes aefc6a8
Updated the schema
luizfroes 8bfa5f2
added the seeds.js
luizfroes f2fdfab
added index file with comments
luizfroes 1eeea79
added DB class
luizfroes e7c91c6
Added the opening question
luizfroes b6b099b
Added all if statements on index.js
luizfroes 86cb92a
Added all questions
luizfroes da0caf1
Added inquirer questions to add
luizfroes e5905d4
Added new Db class and the while loop
luizfroes 72ad2b6
Added add department option
luizfroes e9c6e9c
refactored some utils functions
luizfroes ad06fa5
Refactored some utils functions
luizfroes 963c569
Added all the view options
luizfroes 997c05c
refactored questions
luizfroes a2f5c74
refactored utils
luizfroes ca43eb7
refactored the code
luizfroes 55fe8fe
refactored code and added delete options
luizfroes 273e495
Added update options
luizfroes ab0cb55
added display employees by manager
luizfroes a9f0649
added view employees by department
luizfroes 66fd501
added view employees by role option
luizfroes 5ae4538
Installed dotenv package
luizfroes 5d79440
refactored the code
luizfroes ba55cf1
Added the departments budget action
luizfroes a1dcb90
refactored the code and fixed some bugs
luizfroes 9f45eaa
refactored
luizfroes 63f6a36
added some validations
luizfroes 2c0117b
Added the readme file content
luizfroes c7ec826
moving questions to utils
luizfroes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,3 +102,9 @@ dist | |
|
|
||
| # TernJS port file | ||
| .tern-port | ||
|
|
||
| .env | ||
|
|
||
| .DS_store | ||
|
|
||
| .node_modules | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,80 @@ | ||
| # employee-tracker | ||
| A command-line application to manage a company's employee database, using Node.js, Inquirer, and MySQL. | ||
| <h1>Employee Tracker</h1> | ||
|
|
||
| <h2>Table of Contents</h2> | ||
|
|
||
| - [Description](#description) | ||
| - [User Story](#user-story) | ||
| - [Technologies Used](#technologies-used) | ||
| - [Installation](#installation) | ||
| - [Usage](#usage) | ||
| - [Video Walkthrough](#video-walkthrough) | ||
| - [Questions](#questions) | ||
|
|
||
| ## Description | ||
|
|
||
| Developers frequently have to create interfaces that allow non-developers to easily view and interact with information stored in databases. These interfaces are called **content management systems (CMS)**. That is exactly what Employee Tracker does. It a command-line application to manage a company's employee database, using Node.js, Inquirer, and MySQL. | ||
|
|
||
| ## User Story | ||
|
|
||
| ```md | ||
| GIVEN a command-line application that accepts user input | ||
| WHEN I start the application | ||
| THEN I am presented with the following options: view all departments, view all roles, view all employees, add a department, add a role, add an employee, and update an employee role | ||
| WHEN I choose to view all departments | ||
| THEN I am presented with a formatted table showing department names and department ids | ||
| WHEN I choose to view all roles | ||
| THEN I am presented with the job title, role id, the department that role belongs to, and the salary for that role | ||
| WHEN I choose to view all employees | ||
| THEN I am presented with a formatted table showing employee data, including employee ids, first names, last names, job titles, departments, salaries, and managers that the employees report to | ||
| WHEN I choose to add a department | ||
| THEN I am prompted to enter the name of the department and that department is added to the database | ||
| WHEN I choose to add a role | ||
| THEN I am prompted to enter the name, salary, and department for the role and that role is added to the database | ||
| WHEN I choose to add an employee | ||
| THEN I am prompted to enter the employee’s first name, last name, role, and manager, and that employee is added to the database | ||
| WHEN I choose to update an employee role | ||
| THEN I am prompted to select an employee to update and their new role and this information is updated in the database | ||
| ``` | ||
|
|
||
| ## Technologies Used | ||
|
|
||
| #### Languages | ||
|
|
||
| - JavaScript | ||
| - JQuery | ||
|
|
||
| #### Packages used | ||
|
|
||
| - Node.Js | ||
| - Inquirer | ||
| - Mysql2 | ||
| - Dotenv | ||
| - Console.table | ||
|
|
||
| ## Installation | ||
|
|
||
| To install the application follow the steps below: | ||
|
|
||
| ``` | ||
| npm install | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| To use the application follow the steps below: | ||
|
|
||
| ``` | ||
| npm run start | ||
| ``` | ||
|
|
||
| ## Video Walkthrough | ||
|
|
||
| Click [here](https://drive.google.com/file/d/1vY8UyUaPKDp7BSeCC6yc-TZ2E3R619NM/view?usp=sharing) to access the Video Walkthrough. | ||
|
|
||
| ## Questions | ||
|
|
||
| If you have any question or suggestion, please fell free to get in touch with me by: | ||
|
|
||
| Email: [luizfroes@gmail.com](mailto:luizfroes@gmail.com) | ||
|
|
||
| GitHub: [luizfroes](https://github.com/luizfroes) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this application requires any user to connect to the database, it would be good to include a step to tell them where to find the script to create the database and how to run this.