Skip to content

Parinaz11/DBProject_StoreApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Store Application (JavaFX + MongoDB)

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.


Project Overview

The application connects to a MongoDB database named:

Store_Application

It contains two main collections:

LoginInfo

Each document represents a user:

  • Username
  • Password
  • boughtProducts (array of purchased items)

Products

Each document represents a product:

  • Name
  • Price
  • Brand
  • Category
  • ImageID
  • itemsLeft
  • reviews (array of user reviews)

Authentication System

When the application starts, the user is directed to the Login / Sign Up screen.

Login Flow

  • Enter username and password
  • Credentials are validated against MongoDB
  • If authentication fails → access is denied

Sign Up Flow

  • New users can register via the Sign Up page
  • A new document is created in the LoginInfo collection
  • After registration, the user is redirected to the main store page

Main Features

Product Browsing

  • View all products in the store
  • Filter by category:
    • Makeup
    • Cars
    • Clothes
    • Laptops
    • Cellphones
    • And more

Search System

  • Search bar allows partial name matching
  • Displays relevant products dynamically

Product Details

Clicking on a product shows:

  • Full product information from MongoDB
  • Available stock
  • Reviews

Cart System

  • Add products to cart
  • Stored in boughtProducts array inside user document

Reviews

  • Users can write product reviews
  • Reviews are stored in MongoDB under each product

Exit Flow

  • Sign Out returns user to login page
  • Exit button closes the application

How to Run the Project

Required Tools

Before running the project, install:


MongoDB Setup

Follow official installation guides:


JavaFX + Scene Builder Setup

Integrate Scene Builder with your IDE:


Add MongoDB Driver to Project

In IntelliJ IDEA:

File → Project Structure → Libraries → + → Select JAR file

Add:

mongo-java-driver-3.12.14.jar

Screenshots

Login & Sign Up


Main Product Page


MongoDB Collections


Key Concepts Demonstrated

  • 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

About

A Store Application using Java, JavaFX & SceneBuilder and MongoDB

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages