• Stars
    star
    126
  • Rank 279,140 (Top 6 %)
  • Language
    Java
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

an online-shopping platform database, course project for COMP421@McGill

Online-Shopping-Cart-Database-Project

You may find more details about this project at my personal blog

ER Diagram

image

Entities

  • User (userId, name, phoneNum)
  • Buyer (userId)
  • Seller (userId)
  • Bank Card (cardNumber, userId, bank, expiryDate)
  • Credit Card (cardNumber, organization)
  • Debit Card (cardNumber)
  • Store (sid, name, startTime, customerGrade, streetAddr, city, province)
  • Product (pid, sid, name, brand, type, amount, price, colour, customerReview, modelNumber)
  • Order Item (itemid, pid, price, creationTime)
  • Order (orderNumber, creationTime, paymentStatus, totalAmount)
  • Address (addrid, userid, name, city, postalCode, streetAddr, province, contactPhoneNumber)

Relationships

  • Manage (userid, sid, SetupTime) (userid ref Seller, sid ref Store)
  • Save to Shopping Cart (userid, pid, quantity, addtime) (userid ref Buyer, pid ref Product)
  • Contain (orderNumber, itemid, quantity) (orderNumber ref Order, itemid ref Order Item)
  • Deliver To (addrid, orderNumber, TimeDelivered) (addrid ref Address, orderNumber ref Order)
  • Payment (C.cardNumber, orderNumber, payTime) (C.cardNumber ref Credit Card, orderNumber ref Order)

Create Database

Java GUI

simpleJDBCPostgres.java is only a sample Java to link the Postgresql JDBC driver and connect to the database for your reference.

SQL.java is the acutal program that we wrote to submit the sql execution to the database based on the sample above.

Java_GUI contains the Java programs for creating the GUI.

  1. MainFrame.java: Provide main menu for user to choose different function.

image

  1. Register.java: User registration interface.

image

  1. Login.java: User log-in interface.

image

  1. AddAddress.java: Add address for delivery.

image

  1. SearchFrame.java:Search products in database.

image

  1. SaveToCartFrame.java: Add products into shopping cart.

image

  1. SetUpOrderFrame.java: View the shopping cart and create the order.

image

  1. addressFrame.java: Select a delivery address and finish the shopping.

image

More Repositories

1

Sampling-based-Planning-for-Robot-Arm

Sampling-based Planning Algorithms with Constraint for a 7-DoF Robot Arm. The algorithms include RRT, CBiRRT, PRM, and OBPRM.
Python
42
star
2

Franka-Robot-Path-Planning

Kinematics and RRT Path Planning algorithm for Franka Robot
Python
24
star
3

Face-Recognition-Flask-GUI

A face recognition demo system based on Flask and HTML. Available methods include EigenFace, LBP, and ResNet-based deep learning
Python
14
star
4

Motion-Prediction-for-Autonomous-Vehicle

agent car's trajectory prediction for autonomous vehicles using Lyft dataset
Python
14
star
5

Autonomous-Bin-Picking

RLBench simulation project for autonomous bin picking using Pandas robot arm
Python
10
star
6

STM32F103-Robot-Car

Project for EIE3105 course at PolyU. A robot car embedded with STM32F103RB
C
5
star
7

Leetcode

My own Leetcode solution & explanation repo (Most of them are in Chinese)
4
star
8

Frame-Level-Speech-Classification

Kaggle Competition on Speech Classification for CMU-11785
Python
3
star
9

RadimoicDeepFeatureExtraction

lung tumor deep features extraction and classification with Resnet-18
Python
2
star
10

Linear-and-Nonlinear-SLAM-Solvers

SLAM as Least-Square Problems. Uses LU, QR and Pseudo Inverse with sparse matrix techniques to get the optimization
Python
2
star
11

CNN-for-Chinese-Text-Classifier

A CNN for Chinese Text Classifier based on TensorFlow and word2vec
Python
2
star
12

Deep-Learning-Face-Classification-and-Verification

Kaggle Competition on Face Classification and Verification for CMU-11785, ranked 47/301 (Top 16%) and 2/292 (Top 1%)
Python
2
star
13

MotionMapper

Behavioural mapping analysis for robot/animal locomotion
MATLAB
1
star
14

Dense-SLAM-with-Point-based-Fusion

Dense 3D SLAM with point-based Fusion with RGB-D images
Python
1
star
15

Deep-Learning-Speech-to-Text-Generation-with-Attention

Kaggle Competition on Transcript Generation for CMU-11785, ranked 14/278 (Top 5%)
Python
1
star