Official repository of one of my first Java projects, this is Pharmacy Administrator Lite
Before running the application, make sure you have:
- Java Runtime Environment (JRE) installed on your computer
- To check if Java is installed, open a terminal/command prompt and type:
java -version
- If Java is not installed, download and install it from the official Java website
- To check if Java is installed, open a terminal/command prompt and type:
- Download the
.jar
file, located at:Pharmacy Administrator Lite/dist/
in this repository. - Save it to a location on your computer where you have read and write permissions
- Navigate to the folder where you saved the
.jar
file - Double-click the file named
filename.jar
- If this doesn't work, proceed to Method 2 or Method 3
- Open Command Prompt (cmd)
- Press
Windows + R
- Type
cmd
and press Enter
- Press
- Navigate to the folder containing the
.jar
file:cd path\to\your\jar\file
- Run the application:
java -jar filename.jar
- Replace
filename.jar
with the actual name of the file
- Replace
- Open Terminal
- Navigate to the folder containing the
.jar
file:cd path/to/your/jar/file
- Run the application:
java -jar filename.jar
- Replace
filename.jar
with the actual name of the file
- Replace
If you encounter any issues:
-
Verify Java installation:
java -version
- If this command fails, reinstall Java
-
Check file permissions:
- Windows: Right-click the
.jar
file → Properties → Make sure it's not blocked - Linux/macOS: Make the file executable:
chmod +x filename.jar
- Windows: Right-click the
-
Try running with console output:
java -jar filename.jar -console
This will show any error messages that might help identify the problem.
If you continue experiencing issues:
- Check the Issues section of this repository
- Create a new Issue with details about the error and your system configuration
- Java Runtime Environment 8 or higher
- Operating System: Windows 7/10/11, macOS 10.14+, or Linux
- RAM: Minimum 2GB (4GB recommended)
- Storage: 500MB free space
This desktop application, developed using the Java programming language, serves as a tool to assist in the management of pharmacies. It showcases my current programming skills as of July 15, 2024. The application was created with dedication and love to demonstrate my capabilities up to this point.
- Pharmacy Management: The application provides basic functionalities to help manage various aspects of a pharmacy.
- Data Structures: The application utilizes Maps and ArrayLists for efficient data handling and storage within the program.
At present, the application does not include a MySQL database for persistent data storage. Consequently, all data entered during a session will be lost once the application is closed, reverting to its initial state upon the next launch. This limitation highlights the need for future integration of a database to ensure data persistence.
The primary objective of this application is to exhibit my proficiency in Java programming and my ability to implement essential features using core data structures. While the application serves a practical purpose, it is also a testament to my learning journey and the skills I have developed so far.
I hope this project demonstrates my passion for software development and my commitment to continuous improvement in the field.
- Owner: Full access to all functions.
- Administrators: Same permissions as the owner, designated by the owner.
- Limited access to functions related to:
- Product purchases or inquiries.
- Queries regarding suppliers, customers, and reports.
To start using the application, you need to register. The registration button will be disabled after you register, so ensure you choose a username, password, and other details carefully. Upon registration, you will assume the role of the Owner.
- Navigate to the login window (the one with the image of a vase).
- Click the "Sign up" button.
- In the registration window (the one with the image of a building), fill in your details.
- Read the terms and conditions (recommended).
- Press the "Register" button.
- Enter your username and password in the login window.
- Press "Start."
Upon logging in, you will be redirected to the administration panel.
- A menu on the left side contains various sections.
- To navigate, hover over a section label and click to be redirected to the corresponding panel.
Each section has a "Cancel" button. Press it to stop the current action and clear the fields.
- Go to the employee panel in the Administration window.
- Click on the employee section in the left menu.
- Fill in the employee's details and select their role (Administrator or Auxiliary).
- Press the "Register" button.
As part of the new employee registration process, the system will automatically generate a temporary password upon completion of registration. This password will follow the following format:
Welcome@UserName
.
For example, for a user registered as Carlos123, the temporary password assigned will be:
Welcome@Carlos123
For institutional security reasons, it is mandatory to follow these steps during your first login:
- Login to the system using your temporary credentials.
- Go to the account settings panel
- Immediately change the temporary password to a new secure password.
The security of your account is the personal responsibility of each user. Please:
- Store your new password in a secure location.
- Do not share your credentials with third parties under any circumstances.
- Use a strong password that meets the established security requirements.
- In the employee panel, select the employee you wish to modify.
- Update the fields with the new details.
- Press the "Modify" button.
- In the employee panel, select the employee you wish to delete.
- Press the "Delete" button.
- Go to the customer panel in the Administration window.
- Click on the customer section in the left menu.
- Fill in the customer's details.
- Press the "Register" button.
- In the customer panel, select the customer you wish to modify.
- Update the fields with the new details.
- Press the "Modify" button.
- In the customer panel, select the customer you wish to delete.
- Press the "Delete" button.
- Go to the supplier panel in the Administration window.
- Click on the supplier section in the left menu.
- Fill in the supplier's details.
- Press the "Register" button.
- In the supplier panel, select the supplier you wish to modify.
- Update the fields with the new details.
- Press the "Modify" button.
- In the supplier panel, select the supplier you wish to delete.
- Press the "Delete" button.
- Go to the category panel in the Administration window.
- Click on the category section in the left menu.
- Enter the category name and other details.
- Press the "Register" button.
- In the category panel, select the category you wish to modify.
- Update the fields with the new details.
- Press the "Modify" button.
- In the category panel, select the category you wish to delete.
- Press the "Delete" button.
- Ensure you have at least one category registered.
- Go to the product panel.
- Fill in the product details and select its category.
- Press the "Register" button.
- In the product panel, select the product you wish to modify.
- Update the fields with the new details.
- Press the "Modify" button.
- In the product panel, select the product you wish to delete.
- Press the "Delete" button.
- Ensure you have at least one product, customer, and supplier registered.
- Go to the purchase panel.
- Select the product, customer, and supplier, then fill in the "Quantity" field.
- Click "Add" to finalize each purchase.
- Click "Buy" to complete and record the purchase in the Reports section.
- Select the purchase in process you wish to delete.
- Press the "Delete" button.