{"id":19797630,"url":"https://github.com/samantha-ruth/employee-tracker","last_synced_at":"2026-04-11T08:05:12.161Z","repository":{"id":44431447,"uuid":"510409216","full_name":"Samantha-Ruth/Employee-Tracker","owner":"Samantha-Ruth","description":"View all employees, departments, roles, and salaries.  Built using node, npm inquirer, console table, SQL, MySQL2. ","archived":false,"fork":false,"pushed_at":"2022-07-12T00:51:35.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T16:32:59.297Z","etag":null,"topics":["inquirerjs","javascript","mysql2","nodejs","npm","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samantha-Ruth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-04T15:20:44.000Z","updated_at":"2022-10-01T21:31:40.000Z","dependencies_parsed_at":"2022-09-21T12:50:14.845Z","dependency_job_id":null,"html_url":"https://github.com/Samantha-Ruth/Employee-Tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Samantha-Ruth/Employee-Tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FEmployee-Tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FEmployee-Tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FEmployee-Tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FEmployee-Tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samantha-Ruth","download_url":"https://codeload.github.com/Samantha-Ruth/Employee-Tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FEmployee-Tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267046128,"owners_count":24026897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inquirerjs","javascript","mysql2","nodejs","npm","sql"],"created_at":"2024-11-12T07:26:07.262Z","updated_at":"2026-04-11T08:05:12.113Z","avatar_url":"https://github.com/Samantha-Ruth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Employee-Tracker\n\n## Description\n\nThis project uses a combination of node, inquirer package, npm console.table, SQL, mysql2, to create an accessible database.\n\nThis project was a great introductionto SQL.  I practiced creating schemas and seed files, as well as learning the SQL language, using join to create database tables and other queries to edit and delete the data.  I also worked with npm inquirer again, as well as learned about creating a connection to the server using constructors.  \n\n![Screenshot of Application](https://user-images.githubusercontent.com/64170123/178384580-7d8837a6-875f-437a-86da-308b57351e3d.jpg)\n\n## Table of Contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Links](#links)\n* [Questions](#questions)\n\n## Installation\n\nIf the user already has node installed on their device, they can download this project and run \"npm init\" and then \"npm install --save inquirer@^8.0.0 (** please note: newer versions of inquirer will not work properly with this program!), and then npm install console.table --save.  After this, install --save mysql2. In order to protect passwords, the user will also wan to \"install dotenv\" as well. \n\nIn order to access the mysql2 shell,  the user needs to create a .env file with the following, replacing \u003cusername\u003e and \u003cuser password\u003e with the users own username and password: \n  \nDB_NAME=ecommerce_db\n\nDB_USER= \u003c username \u003e\n\nDB_PASSWORD= \u003c user password \u003e\n\n\nTo ensure the user is connected to the correct database, navigate to the root folder of the project, and then open the mysql2 shell and enter \"source db/schema.sql\".  Then enter \"source db/seeds.sql\" to seed the database file. Exit the mysql2 shell by entering \"exit\" into the command line.\n\nFinally, connect the server by entering \"npm start\" into the command line.\n\n## Usage\n\nThe user will be presented with a list of options regarding an employee database.  They can view all departments, roles, and employees, as well as add departments, roles, and employees.  The user gets access to the database using the console line and can adjust data as desired.  \n\n\n![Screenshot of Employees](https://user-images.githubusercontent.com/64170123/178384602-b23ed9db-53fc-4b43-bddb-ff2b0be9d63b.jpg)\n\n\n\n![Screenshot of Roles](https://user-images.githubusercontent.com/64170123/178384607-947f2266-b47b-4e36-9501-3afddf20a915.jpg)\n\n\n![Screen shot of department](https://user-images.githubusercontent.com/64170123/178384619-b45b8c5f-d782-419e-8d42-2880d87f9c9f.jpg)\n\n\n\n\n## Links\n\n\nLink to video of project: https://drive.google.com/file/d/15iPjD0eDP5efbM6klVUt2U8oNl0m97Pz/view\n\n\nThe url of the Git repository is here: https://github.com/Samantha-Ruth/Employee-Tracker\n\n\n## Questions\n\nIf you have any questions about the repo, open an issue or you can find more of my work at (https://gitHub.com/Samantha-Ruth).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamantha-ruth%2Femployee-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamantha-ruth%2Femployee-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamantha-ruth%2Femployee-tracker/lists"}