{"id":17007347,"url":"https://github.com/leoelicos/depto","last_synced_at":"2026-04-19T03:32:58.137Z","repository":{"id":40308466,"uuid":"490681237","full_name":"leoelicos/depto","owner":"leoelicos","description":"CRUD, SQL, Inquirer","archived":false,"fork":false,"pushed_at":"2023-04-07T16:13:00.000Z","size":411,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T11:48:27.306Z","etag":null,"topics":["cli","crud-application","inquirer","sql"],"latest_commit_sha":null,"homepage":"https://youtu.be/W58SFkcsXkM","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoelicos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-10T12:12:33.000Z","updated_at":"2023-04-07T15:19:40.000Z","dependencies_parsed_at":"2024-10-14T05:25:26.795Z","dependency_job_id":"4abd708a-fa15-4191-abf2-334e3c3c470c","html_url":"https://github.com/leoelicos/depto","commit_stats":null,"previous_names":["leoelicos/depto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leoelicos/depto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fdepto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fdepto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fdepto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fdepto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoelicos","download_url":"https://codeload.github.com/leoelicos/depto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fdepto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["cli","crud-application","inquirer","sql"],"created_at":"2024-10-14T05:25:29.225Z","updated_at":"2026-04-19T03:32:58.102Z","avatar_url":"https://github.com/leoelicos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# depto\n\n![MySQL](https://img.shields.io/badge/2.3.3-0?label=MySQL\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![Inquirer](https://img.shields.io/badge/8.2.4-0?label=Inquirer\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![chalk](https://img.shields.io/badge/4.1.2-0?label=chalk\u0026style=for-the-badge\u0026labelColor=white\u0026color=black)\n\n## Introduction\n\nThis easy-to-use employee management system allows the user to perform CRUD actions like view, add, update and delete. It would allow a business manager to add and save business data in order to better arrange and document CRUD.\n\nThis CLI application uses npm packages `inquirer`, `SQL` and `chalk`.\n\nI made this app in order to learn how to use SQL queries.\n\nI used GitHub Projects and various Pull Requests to create this app: https://github.com/leoelicos/depto/projects/1\n\nDeployed API https://dpto.herokuapp.com/api/employees\n\n## Installation\n\nSource code: [depto on GitHub](https://github.com/leoelicos/depto).\n\n| Step                          | Instruction                                        |\n| ----------------------------- | -------------------------------------------------- |\n| install node                  | https://nodejs.org/en/download/                    |\n| install mysql                 | https://dev.mysql.com/downloads/installer/         |\n| clone this repo               | `git clone https://github.com/leoelicos/depto.git` |\n| Go inside the database folder | `cd db`                                            |\n| invoke mysql                  | `mysql -u root -p`                                 |\n| Enter your mysql password     | `{password}`                                       |\n| Create schema                 | `source schema.sql`                                |\n| (optional) Add dummy data     | `source seeds.sql`                                 |\n| Exit mysql                    | `exit`                                             |\n| Import dependencies           | `npm i`                                            |\n| Start the app                 | `npm start`                                        |\n\n## Demo\n\n### Video demo\n\nhttps://user-images.githubusercontent.com/99461390/168465029-867e7224-30ab-4c93-b211-7c3a8250b9cd.mp4\n\nAlso on [YouTube](https://www.youtube.com/watch?v=W58SFkcsXkM)\n\n## Usage\n\n### Keyboard commands\n\n| Step                | Keyboard commands                     |\n| ------------------- | ------------------------------------- |\n| Navigate menu items | \u003ckbd\u003eUp ↑\u003c/kbd\u003e and \u003ckbd\u003eDown ↓\u003c/kbd\u003e |\n| Select menu items   | \u003ckbd\u003eEnter ↵\u003c/kbd\u003e                    |\n\n### GUI\n\n| Menu                                     | What it does                                      |\n| ---------------------------------------- | ------------------------------------------------- |\n| View All Departments                     | Print table of all departments in database        |\n| View All Roles                           | Print table of all roles in database              |\n| View All Employees                       | Print table of all employees in database          |\n| View Employees by Department             | Print table of employees in specific department   |\n| View Employees by Manager                | Print table of employees with specific manager    |\n| View Total Utilized Budget by Department | Print table of budget used by specific department |\n| Add Department                           | Add a department, like `Legal` and `Finance`      |\n| Add Role                                 | Add a role, like `Manager` and `Engineer`         |\n| Add Employee                             | Add an employee, like `John Prescott`             |\n| Update Employee Role                     | Assign specific role to specific employee         |\n| Update Employee Manager                  | Assign specific manager to specific employee      |\n| Delete Department                        | Delete specific department from database          |\n| Delete Role                              | Delete specific role from database                |\n| Delete Employee                          | Delete specific employee from database            |\n| Quit                                     | Exit the application                              |\n\n## Screenshots\n\n### Screenshot: Menu\n\n![Screenshot: Menu](https://user-images.githubusercontent.com/99461390/168408340-d34d4fb2-531b-42b7-b1a3-235b20863510.jpg)\n\n### Screenshot: View Departments\n\n![Screenshot: View Departments](https://user-images.githubusercontent.com/99461390/168408341-0962bbd5-11c0-4cc2-a5b9-8247c1a13515.jpg)\n\n### Screenshot: View all Roles\n\n![Screenshot: View all Roles](https://user-images.githubusercontent.com/99461390/168408342-a9ebed49-fe90-49d8-8e1f-66686744b280.jpg)\n\n### Screenshot: View all Employees\n\n![Screenshot: View all Employees](https://user-images.githubusercontent.com/99461390/168408344-2399db85-399c-4a36-87d1-de0b276334c2.jpg)\n\n### Screenshot: View all Employees by Department\n\n![Screenshot: View all Employees by Department](https://user-images.githubusercontent.com/99461390/168408345-a3845ffe-a0aa-436e-9f26-5e630fa0e8ee.jpg)\n\n### Screenshot: View all Employees by Manager\n\n![Screenshot: View all Employees by Manager](https://user-images.githubusercontent.com/99461390/168408347-15ee2c1e-3d0d-4ee7-88ae-2f6e02d852db.jpg)\n\n### Screenshot: View Total Utilized Budget by Department\n\n![Screenshot: View Total Utilized Budget by Department](https://user-images.githubusercontent.com/99461390/168408349-bb7c36a2-a579-49f6-8288-4097fdf6eeaf.jpg)\n\n### Screenshot: Error Handling\n\n![Screenshot 2022-05-14 234916](https://user-images.githubusercontent.com/99461390/168428587-8cf565fb-be8b-45b5-87ed-1edc9adf227b.jpg)\n\n## Credits\n\n- BCS Resources\n\n## License\n\n\u0026copy; Leo Wong \u003cleoelicos@gmail.com\u003e\n\nLicensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoelicos%2Fdepto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoelicos%2Fdepto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoelicos%2Fdepto/lists"}