This project is a simple desktop store application built using:
- Java
- JavaFX (GUI framework)
- MongoDB (database)
It demonstrates a full-stack desktop architecture with authentication, product browsing, cart management, and review features.
The application connects to a MongoDB database named:
Store_Application
It contains two main collections:
Each document represents a user:
- Username
- Password
- boughtProducts (array of purchased items)
Each document represents a product:
- Name
- Price
- Brand
- Category
- ImageID
- itemsLeft
- reviews (array of user reviews)
When the application starts, the user is directed to the Login / Sign Up screen.
- Enter username and password
- Credentials are validated against MongoDB
- If authentication fails → access is denied
- New users can register via the Sign Up page
- A new document is created in the
LoginInfocollection - After registration, the user is redirected to the main store page
- View all products in the store
- Filter by category:
- Makeup
- Cars
- Clothes
- Laptops
- Cellphones
- And more
- Search bar allows partial name matching
- Displays relevant products dynamically
Clicking on a product shows:
- Full product information from MongoDB
- Available stock
- Reviews
- Add products to cart
- Stored in
boughtProductsarray inside user document
- Users can write product reviews
- Reviews are stored in MongoDB under each product
- Sign Out returns user to login page
- Exit button closes the application
Before running the project, install:
-
MongoDB Community Server
https://www.mongodb.com/download-center#community -
MongoDB Java Driver (v3.12.14)
https://jar-download.com/?search_box=mongo-java-driver -
Scene Builder (for JavaFX UI editing)
http://gluonhq.com/products/scene-builder/
Follow official installation guides:
- Windows: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
- Linux: https://docs.mongodb.com/manual/administration/install-on-linux/
- macOS: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
Integrate Scene Builder with your IDE:
- Eclipse: http://code.makery.ch/library/javafx-8-tutorial/part1/
- IntelliJ IDEA: https://www.jetbrains.com/help/idea/opening-fxml-files-in-javafx-scene-builder.html
- NetBeans: https://docs.oracle.com/javase/8/scene-builder-2/work-with-java-ides/sb-with-nb.htm
In IntelliJ IDEA:
File → Project Structure → Libraries → + → Select JAR file
Add:
mongo-java-driver-3.12.14.jar
- JavaFX GUI Development
- MongoDB Integration with Java
- Authentication System
- Role-based user flow (basic structure)
- CRUD operations
- Embedded search functionality
- Cart & review system
- MVC-style project organization






