This command-line application is a content-management system that specifically manages soccer teams and players. It allows the user to view/add divisions, teams, and players, and update teams and players.
- Install Node.js (https://nodejs.org/)
Install dependencies, which include:
-
console.table
-
inquirer
-
mysql2
npm i- Logging into MySQL
mysql -u root- Using databases and seeding values
mysql -u root -p <<EOF
USE player_db;
source db/db.sql;
source db/schema.sql;
source db/seeds.sql;
EOF- Enter password to execute shell script
To run program
-
node index
Once connected, user will see confirmation of connection and a list of options.
User will then be able to navigate through the options and manage a database of divisions, teams, and players.