0% found this document useful (0 votes)
44 views

Simple Online Shopping System

Uploaded by

mainidhi vadada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Simple Online Shopping System

Uploaded by

mainidhi vadada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Online Shopping System.

This project is based on Online Shopping App using Java, Spring, Spring Boot,
MySQL. There are 6 model classes in the project User, Customer, Address, Product,
Cart and Order. The main goal of this project is to create a series of backend API’s so
that the user can access the functionalities of the various types of functions of the
models just like the functionalities one can get while shopping from any online
website.

Abstract:
The Online Shopping System is an integrated web-based application designed to
provide complete solutions for both vendors and customers. Here are the key points:
1. Goal and Objectives:
o Goal: To create an efficient system for handling customer orders, inventory
management, and secure transactions.
o Objectives: Streamline shopping processes, enhance user experience, and provide a
seamless platform for buying products online.
2. System Components:
o Inventory Management: Tracks available products, categories, and other relevant
details.
o Order Processing: Manages customer orders, maintains order history, and facilitates
secure payments.
o User Interface: Provides an intuitive and user-friendly interface for browsing
products, adding them to the cart, and checking out.
3. Software Requirements:
o Front-End Frameworks: Choose from technologies like Angular, Back-End
Services: Develop backend services using Java (Spring Boot
o Database: Select an appropriate database system such as MySQL
o Security: Implement secure authentication and encryption for user privacy.

Remember, the Online Shopping System plays a crucial role in providing a


convenient and efficient platform for users to shop online.
Tech Stacks & Tools Used
Tech Stacks:

1. Java
2. MySQL
3. Spring
4. Spring Boot

Tools:

1. Spring Tool Suite


2. Swagger
3. Postman

Link to Swagger: http://localhost:8088/swagger-ui/index.html#/

To register as a user:

http://localhost:8088/regisrtration

To login as a user:

http://localhost:8088/login

To add new products

http://localhost:8088/newproducts

To get customer

http://localhost:8088/{customerId}

To add products to cart:

http://localhost:8088/Cart/addtocart/{id}/{custId}

To get all address:

http://localhost:8088/getAll

Swagger UI
Request used for each endpoint:

Registration(adding user):

"UserId":101,

"name": "Sai",

"mobile":"7896158490",

"password": "sai@123",

“role”: “Customer”

Login :

"mobileNo":"7896158490",

"password": "sai@123"

Adding Product:

"productName":"SamsungGalaxy",

"price": 1000,
"quantity":1,

"manufacturer":"Samsung",

"category":"MOBILES"

Adding Address:

"streetNo":"101",

"buildingName":"SuryaEnclave",

"city":"hyderabad",

"country":"india",

"state":"Telangana",

"pincode":500010

Adding Customer:

"firstName":"Sai",

"lastName":"Surya",

"mobileNumber":"7896158490",

"email":"[email protected]",
"addressList":[{

"streetNo":"101",

"buildingName":"SuryaEnclave",

"city":"hyderabad",

"country":"india",

"state":"Telangana",

"pincode":500010

}]

System Configuration: -

H/W System Configuration: -

Processor - Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz 2.50 GHz


Speed - 1.1 Ghz
RAM - 16 GB
Hard Disk - 20 GB
Key Board - Standard Windows Keyboard
Mouse - Two or Three Button Mouse
Monitor - SVGA
DBScripts:

Create database project;

use project;

create table address (address_id integer not null, building_name varchar(255) not null, city
varchar(255) not null, country varchar(255) not null, pincode varchar(255), state varchar(255) not
null, street_no varchar(255) not null, primary key (address_id)) engine=InnoDB

create table cart (cart_item_id integer not null, cart_item_product_id integer,


customerlist_customer_id integer, primary key (cart_item_id)) engine=InnoDB

create table current_user_session (id integer not null, user_id integer, time datetime(6), unique_id
varchar(255), primary key (id)) engine=InnoDB

create table customer (customer_id integer not null, email varchar(255), first_name varchar(255)
not null, last_name varchar(255) not null, mobile_number varchar(255) not null, primary key
(customer_id)) engine=InnoDB

create table customer_addresslist (customer_customer_id integer not null, addresslist_address_id


integer not null) engine=InnoDB

create table hibernate_sequence (next_val bigint) engine=InnoDB

insert into hibernate_sequence values ( 1 )

create table my_order (orderid integer not null, localdtetime datetime(6), orderstatus varchar(255),
address_address_id integer, customer_customer_id integer, primary key (orderid)) engine=InnoDB

create table my_order_productlist (my_order_orderid integer not null, productlist_product_id


integer not null) engine=InnoDB

create table products (product_id integer not null, category varchar(255), color varchar(255),
dimension varchar(255), manufacturer varchar(255) not null, price double precision not null,
product_name varchar(255) not null, quantity integer, specification varchar(255), primary key
(product_id)) engine=InnoDB

create table user (user_id integer not null, mobile varchar(255) not null, name varchar(255) not null,
password varchar(255) not null, primary key (user_id)) engine=InnoDB

alter table current_user_session drop index UK_jhte8iaovevdj69c971ca2wm1

alter table current_user_session add constraint UK_jhte8iaovevdj69c971ca2wm1 unique (user_id)

alter table customer_addresslist drop index UK_mt716rawdy7i1l9g1dxfm5lei

alter table customer_addresslist add constraint UK_mt716rawdy7i1l9g1dxfm5lei unique


(addresslist_address_id)

alter table my_order_productlist drop index UK_c9itc02enbmxj3na73qdw41s9

alter table my_order_productlist add constraint UK_c9itc02enbmxj3na73qdw41s9 unique


(productlist_product_id)

alter table cart add constraint FKihmlrhtwvqu0tscap75v2cjg6 foreign key (cart_item_product_id)


references products (product_id)
alter table cart add constraint FKf9l7w5riuboahnilmumqd0pq foreign key
(customerlist_customer_id) references customer (customer_id)

alter table customer_addresslist add constraint FK4vplq9fbs3d6ppj6od8o6rr7t foreign key


(addresslist_address_id) references address (address_id)

alter table customer_addresslist add constraint FKpjp29ubg21t0y32s96srwfkva foreign key


(customer_customer_id) references customer (customer_id)

alter table my_order add constraint FKs52kryjqp4quf5crtm1i7pmgt foreign key (address_address_id)


references address (address_id)

alter table my_order add constraint FKdly9avjdrmbmk71r9gwngxssh foreign key


(customer_customer_id) references customer (customer_id)

alter table my_order_productlist add constraint FK9bj7w2f1s7us9e1ddsx8g547v foreign key


(productlist_product_id) references products (product_id)

alter table my_order_productlist add constraint FKtqxtuftr1mf6shtuf4vrs6o9s foreign key


(my_order_orderid) references my_order (orderid)

You might also like