ReactStarter

Broadleaf Commerce Spring Boot React Starter

  • 所有者: BroadleafCommerce/ReactStarter
  • 平台:
  • 许可证: Creative Commons Zero v1.0 Universal
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Broadleaf Commerce Spring Boot React Starter

This Maven project is meant to be used as a solid starter project for any 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.

This project differs from Demo Site in that it uses React and NodeJS for the site application and interacts with Broadleaf through the api application. This is a good starting point for anyone looking to use Broadleaf for a single-page application.

Environment Setup

The site application requires your environment to have NodeJS and Yarn installed. You will need to download and install both
of these to your environment.

NodeJS can be found and downloaded at https://nodejs.org/en/.

You can find the instructions to install Yarn at https://yarnpkg.com/en/docs/install. Mac users can run brew install yarn.

Running the applications

This starter contains several runnable applications: site, admin, and api.
You can run admin and api as any other Spring Boot application (http://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-running-your-application.html)
These applications automatically configure and start an HSQL DB and SOLR instance (if not already configured).
By default, these will be located in your java.io.tmp directory.

Running the api application

This application needs to be the first to run since the site application is dependent on the api application. You can run
this application by using the Spring Boot Maven Plugin::

   > cd <path to ReactStarter>
   > mvn clean install
   > cd api
   > mvn spring-boot:run

Note: Default debug port open on 8085

Running the site application

The site application is a runnable NodeJS application. You will need to be sure to be running the api application first,
as the site application is not functional without the api.

Starting up the site application requires you to install the dependencies and then running the webpack dev server.

   > cd site
   > yarn
   > yarn develop

Running the admin application

   > cd admin
   > mvn spring-boot:run

Note: Default debug port open on 8084

License

Broadleaf Commerce React Starter

Written in 2017 by Broadleaf Commerce info@broadleafcommerce.com

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.

Please Note - The scope of CC0 Public Domain Dedication extends to Broadleaf Commerce React Starter demo application alone. Linked libraries (including all Broadleaf Commerce Framework libraries) are subject to their respective licenses, including the requirements and restrictions specified therein.

主要指标

概览
名称与所有者BroadleafCommerce/ReactStarter
主编程语言JavaScript
编程语言Java (语言数: 5)
平台
许可证Creative Commons Zero v1.0 Universal
所有者活动
创建于2017-08-28 19:30:31
推送于2024-11-19 18:32:49
最后一次提交2017-08-28 14:30:57
发布数0
用户参与
星数43
关注者数22
派生数41
提交数57
已启用问题?
问题数20
打开的问题数6
拉请求数22
打开的拉请求数4
关闭的拉请求数11
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?