The Shopini is a Java-based console application that provides a user-friendly environment for product purchasing. It allows users to log in as an admin or agent, perform various tasks such as adding products to the agent, view the records in the product table, buying the products and generate a bill for it.
- Login: Users can log in as an admin or agent by providing their username and password.
- Admin Functionality: The admin role can add products to the agent table and view the records in the agent table.
- Agent Functionality: The agent role can perform specific tasks related to add product to the table, can buy the product and display the shopping bill.
- Database Integration: The application integrates with a MySQL database to store and retrieve data.
- User-friendly Environment: The application provides a menu-driven interface for easy navigation and interaction
To run the Shopping Bill Website, follow these steps:
- Set up a MySQL database and update the database configuration details in the code.
- Compile the Java source files using a Java compiler.
- Execute the compiled Java program.
- Java Development Kit (JDK)
- MySQL database
Make sure to update the following configuration details in the code:
DB_URL
: The URL of the MySQL database.DB_USERNAME
: The username to access the database.DB_PASSWORD
: The password to access the database.
- Launch the application.
- Choose the appropriate login option: admin or agent.
- Provide the correct username and password.
- Perform the desired actions based on the available menu options.
- Logout when finished.
Clone the project
git clone https://github.com/gokul-hastrophil/Shopini/
Go to the project directory
// Code snippet demonstrating the usage of the application
public class ShoppingBillWebsite{
public static void main(String[] args) {
Main m = new Main();
m.main();
}
}
Contributions are welcome! If you have any ideas, improvements, or bug fixes, please open an issue or submit a pull request.
Client: Java, JDBC
Server: MySQL