Skip to content

A command-line application from scratch to manage a company's employee database, using Node.js, Inquirer, and MySQL.

Notifications You must be signed in to change notification settings

jengle-dev/CLI-Content-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI-Content-Management-System

I've created a command-line interface/application from scratch to manage a company's human resources data, an employee database, by using Node.js, Inquirer, and MySQL.

Installation

Here the steps to get up and running:

  • npm i
    REQUIRED: You will need a MySQL username and account because you could be prompted to enter your MySQL password.
  • To initiate MySQL the command is mysql -u root -p then you are prompted for your password.
    Note: Command lines are notorious for not allowing copy/paste. You can copy/paste if you right click in the command line on most machines.
  • The command line will change from powershell or node to mysql. Enter source db/schema.sql; to set up the database locally.
  • Then to seed the database with data, enter source db/seeds.sql;
  • To get out of the mysql shell type quit or exit

To fully initiate the Command Line Interface type either npm start or node index.js.

To exit any question or the CLI at any time, click CTRL+C and the CLI will ask you if you want to terminate the batch job.

Usage & Visuals

A user will be able to go through command prompts to do the following:

  • To view all departments
  • To view all employee roles
  • To view all employee data
  • To create a new role
  • To create a new employee entry

Screenshots

Initial Prompt of Departments:
image

Viewing All Employee Roles:
image

Entering New Employee Data:
image

Video

CLI Content Management System HR

Link to recording of working application. https://drive.google.com/file/d/1KmyHf6bsI5JnXZKTgV4-F2bCP4WvDR1C/view

Support

If there are issues with the application, please reach out to me, Jennifer Engle, at [email protected] and reference the application, site's URL or GitHub repo you're reviewing. Please provide any screenshots and behavior along with your browser information. Thank you!

Credits

I'd like to thank David Love @Cyril1743 & Steven Chafin @SChafinIII for helping me understand switch statements and cases.

References

These references helped me build this project:

License

There is no license for this project.

Project Status

Sumitted for grading review. I will continue to work on this.
I am open to collaboration for contributing to updates to this page. Please email me at [email protected].

URL to GitHub Repo

About

A command-line application from scratch to manage a company's employee database, using Node.js, Inquirer, and MySQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published