STEPS TO USE THIS YOURSELF
- Clone Repo.
- Open mySQL workbench and run the schema script.
- Open cloned repo folder in your text editor.
- Add your mySQL password to each of the 3 .js files.
- Open the terminal, type (npm install) without the brackets and press Enter.
- node bamazonCustomer
- node bamazonManager
- node bamazonSupervisor
* See examples below...
Customer can do the following;
- View the products list.
- Purchase items from the products list.
The SQL Database stock quantity and product sales will update after each purchase.
To access type into terminal: node bamazonCustomer
[Press Enter]
[Follow the on screen instructions]
>
>
Manager can do the following;
- View the products list.
- View the low inventory list.
- Add to stock quantities.
- Add new products.
The SQL Database will update any changes made by the Manager.
To access type into terminal: node bamazonManager
[Press Enter]
[Follow the on screen instructions]
>
>
>
>
Supervisor can do the following;
- View Bamazon over heads, sales and profits.
- Add new departments to the database table.
The SQL Database will update any changes made by the Supervisor.
To access type into terminal: node bamazonSupervisor
[Press Enter]
[Follow the on screen instructions]
>
- Text editor - Visual Studio Code
- Script language - JavaScript
- Runtime environment - Node.js
- Database - MySQL Workbench
- Packages - mysql, inquirer, cli-table, chalk









