Learning how to apply 2 technologies to create shopping and database management applications.
- NodeJS
- MySQL
- First thing first install all npm from package.json to run this application properly
-
Open the Terminal or Bash and use command
node bamazonCustomer.js
. -
Then you will see all available products and be prompted asking
-
Then you will be shown the total price and prompted confirming
-
If you
enter
or typeY
and enter, you will successfully make a purchase- Otherwise if you type
N
and enter you will be quit of the application.
- Otherwise if you type
-
Open the Terminal or Bash and use command
node bamazonManager.js
. -
Once you are connected to the mySQ you will be promptd asking
-
If you select
View Products for Sale
then you will be shown with all product data table -
If you select
View Low Inventory
then you will be shown with all products data table that stock less than 5 -
If you select
Add to Inventory
then you will be shown with all products data table that stock less than 5 and prompted asking -
If you select
Add New Product
then you will be prompted asking all mandatory questions for adding a new inventory