Motivation:
- We learned about how to use mysql queries and how to integrate it to Nodejs, to be able to manage a real database!
Why this project was created:
- In order to create and edit employees, managers, departments and roles in a company
What are we solving:
- we are providing an interface (although not that friendly) so the user can manage the database without the need of accessing the database directly.
What we learned / used:
SQL Queries
MySQL2
Node.js
Inquirer
Chalk
Figlet
console.table()
dotenv
To run the project in your local machine:
- Open visual studio in your computer or laptop
- Clone the git project: https://github.com/lilianpatinoortiz/California-Moon-Star/
- Pull the latest from the 'main' branch
- Open a new terminal and type
npm install
to install the dependencies - Locate the server file and locate yourself there
- Open a new terminal and type
npm start
ornode server
Once you have your project running locally, you will be propted with a colorful header followed by a menu. Select one of the options on the menu to execute different actions with the company database! You can view the roles, departments and employees. You can add roles, employees and departments and you will be also able to update the employees manager!
You have at the end the option to exit, which will terminate the program. Happy coding!
Video of the app: https://drive.google.com/file/d/1EE7jLkMSXW42X5e-eE2Jt1NManjcGknf/view?usp=drive_link
This challenge does not contain specific test files, but below you can find a gif with the flow of the challenge functioning correctly.
If you want to contribute on this project please contact me directly via email lilly.0608@gmail.com. Happy coding!
The main resources used:
- Module 12 information provided in canva
- Chalk: https://github.com/chalk/chalk
- Figlet: https://www.npmjs.com/package/figlet
Please refer to the license badge, on top of this file.
Any question, please feel free to contact me directly via email lilly.0608@gmail.com or via https://github.com/lilianpatinoortiz