• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    HTML
  • License
    Other
  • Created over 7 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

The Broadleaf Heat Clinic Spring Boot application

CommunityStarter

This Maven project is a Spring boot implementation of a community Broadleaf Commerce application. It has many sensible defaults set up along with examples of how a fully functioning eCommerce site based on Broadleaf might work.

Project Overview

The Community Demo is comprised of 4 individual projects:

~/CommunityDemo Β» tree -L 1
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ admin
β”œβ”€β”€ api
β”œβ”€β”€ core
β”œβ”€β”€ pom.xml
└── site
  • admin - a Spring Boot application for the Broadleaf admin for catalog management, see completed orders, etc
  • api - a Spring Boot application that sets up the Broadleaf API endpoints
  • site - a Spring Boot application that runs the Heat Clinic UI built with Thymeleaf as traditional MVC
  • core a common jar that all other projects depend on, used for common functionality like domain

Running the projects

You must first do a mvn package or mvn install from the root to build all of the projects:

~/CommunityDemo Β» mvn clean install

After this completes you can run either site, api or admin by using the Spring Boot Maven plugin with mvn spring-boot:run. Example:

~/CommunityDemo Β» cd site
~/CommunityDemo/site Β» mvn spring-boot:run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Community Demo Site 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.5.4.RELEASE:run (default-cli) > test-compile @ boot-community-demo-site >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ boot-community-demo-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 128 resources
[INFO]
[INFO] --- jrebel-maven-plugin:1.1.7:generate (generate-rebel-xml) @ boot-community-demo-site ---
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ boot-community-demo-site ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-dependency-plugin:2.10:copy (copy-agent) @ boot-community-demo-site ---
[INFO] Configured Artifact: org.springframework:spring-instrument:4.3.9.RELEASE:jar
[INFO] org.springframework:spring-instrument:4.3.9.RELEASE:jar already exists in /Users/phillip/broadleaf/5.2/CommunityDemo/site/target/agents
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ boot-community-demo-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/phillip/broadleaf/5.2/CommunityDemo/site/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ boot-community-demo-site ---
[INFO] No sources to compile
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.5.4.RELEASE:run (default-cli) < test-compile @ boot-community-demo-site <<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.4.RELEASE:run (default-cli) @ boot-community-demo-site ---
[INFO] Attaching agents: [/Users/phillip/broadleaf/5.2/CommunityDemo/site/target/agents/spring-instrument.jar]
objc[3168]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/bin/java (0x10c6444c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10c7574e0). One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 8000

 ,,                                       ,,    ,,                       ,...
*MM                                     `7MM  `7MM                     .d' ""
 MM                                       MM    MM                     dM`
 MM,dMMb.`7Mb,od8 ,pW"Wq.   ,6"Yb.   ,M""bMM    MM  .gP"Ya   ,6"Yb.   mMMmm
 MM    `Mb MM' "'6W'   `Wb 8)   MM ,AP    MM    MM ,M'   Yb 8)   MM    MM
 MM     M8 MM    8M     M8  ,pm9MM 8MI    MM    MM 8M""""""  ,pm9MM    MM
 MM.   ,M9 MM    YA.   ,A9 8M   MM `Mb    MM    MM YM.    , 8M   MM    MM
 P^YbmdP'.JMML.   `Ybmd9'  `Moo9^Yo.`Wbmd"MML..JMML.`Mbmmd' `Moo9^Yo..JMML.
 --------------------------------------------------- C O M M E R C E ------

2017-07-10 07:46:28.786  INFO 3168 --- [           main] com.community.SiteApplication            : Starting SiteApplication on macbook.local with PID 3168 (/Users/osxuser/CommunityDemo/site/target/classes started by osxuser in /Users/osxuser/broadleaf/5.2/CommunityDemo/site)
2017-07-10 07:46:28.790  INFO 3168 --- [           main] com.community.SiteApplication            : No active profile set, falling back to default profiles: default

...
...
2017-07-10 07:49:13.052  INFO 3212 --- [eduler_Worker-1] o.h.cache.internal.StandardQueryCache    : HHH000248: Starting query cache at region: query.Search
2017-07-10 07:49:13.181  INFO 3212 --- [           main] c.c.c.s.s.SolrIndexCleanupServiceImpl    : Not rebuilding indexes because value was update
2017-07-10 07:49:13.479  INFO 3212 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8443 (https) 8080 (http)
2017-07-10 07:49:13.493  INFO 3212 --- [           main] com.community.SiteApplication            : Started SiteApplication in 32.617 seconds (JVM running for 33.017)

If you have a JRebel license you can use the jrebel profile to start with the Jrebel agent, using a jrebel.agent.args property. Example on OSX:

mvn spring-boot:run -Pjrebel -Djrebel.agent.args='-agentpath:/full/path/to/jrebel/lib/libjrebel64.dylib'

We recommend moving the jrebel.agent.args property into your global ~/.m2/settings.xml file so that you can just start the application with:

mvn spring-boot:run -Pjrebel

For more information on which agent to use for your operating system, consult the Jrebel documentation.

Active Ports

Each project by default starts up with different remote debug ports and HTTP/HTTPS connector ports:

License

The Broadleaf Commerce Demo Site is itself licensed under the Broadleaf Fair Use License Agreement - Version 1.0 (http://license.broadleafcommerce.org/fair_use_license-1.0.txt). The Broadleaf Commerce core and module libraries have different license models you should be aware of.

Broadleaf Commerce core libraries, as well as the menu library, are released under a dual license format. They may be used under the terms of the Fair Use License 1.0 (http://license.broadleafcommerce.org/fair_use_license-1.0.txt) unless the restrictions on use therein are violated and require payment to Broadleaf, in which case the Broadleaf End User License Agreement (EULA), Version 1.1 (http://license.broadleafcommerce.org/commercial_license-1.1.txt) shall apply. Alternatively, the Commercial License may be replaced with a mutually agreed upon license between you and Broadleaf Commerce.

Various commercial modules that are also available (for instance, price list management) are released under the applicable commercial license. These are not included with the core Broadleaf framework.

Production Considerations

By default, Caching is disabled and Exploit Protection is enabled in properties but there are more things to be considered. Read through https://www.broadleafcommerce.com/docs/core/current/appendix/production-considerations for more information.

More Repositories

1

BroadleafCommerce

Broadleaf Commerce CE - an eCommerce framework based on Java and Spring
Java
1,722
star
2

LegacyDemoSite

The New Broadleaf Commerce Demo Site
HTML
129
star
3

ReactStarter

Broadleaf Commerce Spring Boot React Starter
JavaScript
43
star
4

GrailsPlugin

broadleaf-grails-plugin
Groovy
13
star
5

blc-paypal

Broadleaf PayPal Integration Module
Java
10
star
6

blc-authorizenet

Broadleaf Authorize.net Integration Module (Direct Post Method)
Java
3
star
7

MicroservicesConcepts

Various extension and dev use cases. Proving ground for concepts.
Java
2
star
8

spring-frameworkmapping

Overridable Spring Web request mappings
Java
2
star
9

PresentationLayer

Broadleaf core framework Thymeleaf support
Java
2
star
10

blc-amazon

Integration of BLC and Amazon services.
2
star
11

blc-google-storage

1
star
12

ModuleTemplate

A template project for creating Broadleaf modules
Java
1
star
13

jx-demo

Makefile
1
star
14

blc-usps

Broadleaf USPS Integration Module
Java
1
star
15

CommonPresentation

Common interfaces around abstracting presentation layer concerns
Java
1
star
16

Menu

Java
1
star
17

APIAuthentication

Authentication services, filters, and configuration used for Broadleaf API starter projects
Java
1
star
18

blc-sample-payment-gateway

Broadleaf Null Payment Gateway Integration - a sample payment gateway integration that does not integrate with an actual payment gateway. Its sole purpose is to demonstrate how the framework may integrate with a real gateway and demonstrate a sample implementation for many of the gateway interfaces.
Java
1
star
19

blc-rackspace

Cloud Files implementation of a Broadleaf FileServiceProvider
1
star