Implemented a Retail Store Management System using Java and MySQL
Here are the steps to get the project running:
- Create a new database called retailStore (or the name of your choice). CREATE DATABASE retailStore;
- Use the SOURCE command to run all the sql statements stored in the .sql files in the project. SOURCE (pathname of src/retailStore_create.sql) SOURCE (pathname of src/retailStore_alter.sql) SOURCE (pathname of src/retailStore_insert.sql)
- On VS Code, open the project folder. In the file named DAO_Factory.java, change the value of the variable PASS to your sql password. (line 17)
- Run the project by clicking on the run button (in the top right corner of the VS Code window), and run DAO_Main.java, which is the driver code.
- The project should now run!
There are two kinds of users of this software : Customers and Employees.
Use cases for the customers:
- Check Available Items
- Order items by price
- Buy products
- Generate Receipt
- Exit
Use cases for the employee:
- Check employee details (a functionality, only available to the owner)
- Check the max sold product
- Check inventory
- Add a product
- Exit