A command-line application to manage a company's employee database, using Node.js, Inquirer, and MySQL.
// Clone the repository to your local machine using:|
git clone git@github.com:malloryfaria/cms-employee-tracker.git
// Install all the dependencies by typing code:
npm i
// Ensure you have set up MySQL and you have a legacy password to log in with ****
// Create a connection.js file in the db folder and paste the following code in but fill it out with your information:
const mysql = require("mysql2");
const connection = mysql.createConnection({
host: "localhost",
// Your MySQL username
user: "root",
// Your MySQL password
password: "yourpasswordhere",
database: "employees_db"
});
connection.connect(function (err) {
if (err) throw err;
});
module.exports = connection;
// From the db folder, login to your MySQL using:
mysql -u root -p
// Then, run this command to create the database:
source db/schema.sql;
// Then quit the MySQL shell by typing
quit;
// Then use the below command to start the server:
npm start
Use this application to keep track of your employees.
The following video shows the application in use:
Node, console.table, MySQL2
This project is licensed under the MIT license.
If you would like to contribute, please reach out to me. You can find my contact information in the "Questions?" section below.
If you have any questions about the project, contact me at: mallory.faria@gmail.com Check out the rest of my work at: malloryfaria