- Install node js and mysql along with mysql workbenck
- Use the terminal and create a folder named -
SHOP
at your desired location - Move inside the
SHOP
folder and run these terminal commands:
npm init
npm install mysql
- open mysql workbench and create a localhost for holding the database
- Use that server and run the Database.sql file in it to create your database
- Open the Application.js inside
SHOP
and update the username and password which you have used for the creation of localhost - Now Just use the below command to run the Application:
node Application.js
Welcome to the user guide for the Console Grocery Shop. This guide will help you navigate through the functionalities available in the application.
When you start the application, you will be presented with the following options:
- Exit: Choose this option to exit the application.
- Login as Customer: Use this option if you are a registered customer and want to access customer-specific functionalities.
- Login as Admin: Select this option if you are an administrator and want access to admin-specific features.
If you choose to login as a customer, you will have access to the following functionalities:
- Ordering: Place an order for products available in the store.
- Customer Analysis: View your profile, payment history, and product history.
- Updating Customer Profile: Update your personal information like name, address, phone number, etc.
If you choose to login as an admin, you will have access to the following functionalities:
- Add Delivery Assistant: Add a new delivery assistant to the system.
- Add Store: Add a new store to the system.
- Store Analysis: View available stores or see stores with maximum profit.
- Product Analysis: View available products, most sold products, or see feedback for a specific product.
- Refill Stock: Refill stock for products when the quantity falls below a certain threshold.
- To log in, you need to provide your registered email ID and password. If you enter incorrect credentials, you will be prompted to try again. After three failed attempts, you will be notified about exceeding the maximum login attempts for your email ID.
- You can exit the application at any time by selecting the "Exit" option from the main menu.
- Password must be at least 8 characters long.
- When placing an order, you can choose from various payment methods such as Cash, Debit Card, Credit Card, or Pay Pal.
- After placing an order, you will receive confirmation along with details about the delivery assistant assigned and the store from which the order will be fulfilled.
- You can submit feedback for a product after receiving your order.
- Subham Maurya (subham22510@iiitd.ac.in)
- Wasif Ali (wasif22583@iiitd.ac.in)