Skip to content

amideb/spring-boot-ecommerce-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Ecommerce

Technology: 

Java, TypeScript, Angular, Spring Boot, MySQL, Postman, Okta, REST API, Bootstrap, Lombok

SpringBoot Backend : https://github.com/debrupofficial365/spring-boot-ecommerce-backend

Angular Frontend : https://github.com/debrupofficial365/angular-ecommerce-website-frontend

Database scripts : https://github.com/debrupofficial365/db-scripts-ecommerce


#######################################################

Build Status Coverage Status License

Minimal Spring Boot sample app.

Requirements

For building and running the application you need:

Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the de.codecentric.springbootsample.Application class from your IDE.

Alternatively you can use the Spring Boot Maven plugin like so:

mvn spring-boot:run

Deploying the application to OpenShift

The easiest way to deploy the sample application to OpenShift is to use the OpenShift CLI:

oc new-app codecentric/springboot-maven3-centos~https://github.com/codecentric/springboot-sample-app

This will create:

  • An ImageStream called "springboot-maven3-centos"
  • An ImageStream called "springboot-sample-app"
  • A BuildConfig called "springboot-sample-app"
  • DeploymentConfig called "springboot-sample-app"
  • Service called "springboot-sample-app"

If you want to access the app from outside your OpenShift installation, you have to expose the springboot-sample-app service:

oc expose springboot-sample-app --hostname=www.example.com

Copyright

Released under the Apache License 2.0. See the LICENSE file.


#######################################################

--->
A website to buy different categorized items, with signup login logout feature, you can go inside the product to check the details, you can add products in the card, and inside the card section, you can increase, decrease the product quantity, or you can remove them from the card, and you can checkout with your valid details to buy products. You can search products by keywords and also have a VIP member section.

--->
In this website, the frontend is designed with angular, and the backend is with Spring Boot and here for the authentication section I use the okta authentication service, and for storing the products I use MySQL as the database.

--->
In spring boot here I have entities, mapped to table and to hold attributes of different properties and we also have the dto(data transfer object) to transfer the data between Angular front-end and Spring Boot back-end. We have a controller and service to send the order to the backend and store it in the database. Config class to disable HTTP methods and make it read-only. And the dao(data access object) classes extended by JpaRepository to access the database.

--->
For testing the backend API HTTP requests, I use Postman.

--->
In the Angular part to get the data from the backend, I use HttpModule and Observable, Here I also have models same as the entities of spring boot, components to build each block (Html and login for each component), have config class to connect the website with okta OAuth service, and also services to implement the several operations of this website and also I use Angular routes to handle the navigation from one view to the next. In this project, I use Reactive Forms, bootstrap, and font awesome icons.

---> Technology: Angular, Spring Boot, MySQL, Postman API, Okta, REST API, Bootstrap

About

spring-boot-ecommerce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages