I will architect and build a solution for managing a company's employees using node, inquirer, and MySQL.
- Description
- Development
- User Story
- Installation
- Schema
- Dependencies
- Tests
- Built With
- Questions
- Demo
- License
- Acknowledgments
- CopyRight
We are creating an interface that makes it easy for non-developers to view and interact with information stored in databases. Often these interfaces are known as Content Management Systems.
This application was built using node.js and adding the required dependencies, as inquirer, mysql, console.clear, console.table and chalk. you can install these via npm i (dependency name)
As a business owner I want to be able to view and manage the departments, roles, and employees in my company So that I can organize and plan my business<
To use this application:
- Clone the GitHub repository at:
- You will to install all the dependencies, see Dependencies for the complete list
- Using
npm install
, install all the dependcies - Using MySQL or MSSQL database, create the DB using the schema.sql file, you can reciew the database schema on the Sql schema file
- Using the seeds.sql file to popluate the DB
- Once you have all the above created, you can edit the server.js file where the password is and add your password to access your local DataBase.
- You can then open a terminal or cmd prompt, navigate to the folder where server.js is located and type:
node server.js
- You will be presented with an ASCII Art log, which you can also edit at your convenience with your selection of art, and the menu,
- You can navigate the menu using the arrow keys
- Press enter to select the element highlighted
- Follow the prompts for addin employess, roles and departments
- Select EXIT in the menu to end the application
- Chalk
- Inquirer
- MYSQL
- Console.table
- console.clear
Work in progress. Ran out of time to implement these, I will get back to this project at a later date to finalize these
- VScode - The editor of choice
- Notepad++ - My second editor
- Gitbash - What would we do without our bash?
-
How can I run the application?
You just need to follow the instructions on the installation section, where it is explained -
What if I get an error?
Ensure that you have install all the dependencies required for this to work. See Dependencies section -
Can I refractor the code in the any of the files file? Yes, you can modify and refractor the code
-
What If I make a mistake during the input? You can go to the Delete Employee, Role and Department and remove the wrong entries, You can also input the schema.sql file again and it will overwrite the database and you can start from scratch, or you can edit the database manually
- John Merchan
To my 2 sons, who give me the power I need to keep going. Special thanks to Vishal who has is a great teacher and during his time with us during the coruse he showed dedication and enourmous passion teaching us Stay safe!
Copyright 2020 ยฉ John Merchan
๐ฆ๐บ
Table of Content --- Back to Top --- Installation