项目作者: softspiders

项目描述 :
An example of building a war of create-react-app on Maven
高级语言: JavaScript
项目地址: git://github.com/softspiders/cra-maven-war-starter.git
创建时间: 2019-12-18T18:44:53Z
项目社区:https://github.com/softspiders/cra-maven-war-starter

开源协议:MIT License

下载


SOFTSPIDERS

cra-maven-war-starter

An example of building a war of create-react-app on Maven

Feature tags

  • build
  • create-react-app
  • maven
  • starter
  • template
  • war

Direct ancestors

-maven, war

Direct descendants - also by code

+typescript

Requirements

Build war

  1. npm run build:war

Hot deployment

Start Tomcat server.

Now the resulting cra-maven-war.war is in the target directory.

Copy the cra-maven-war.war to the webapps directory of the Tomcat server.

Wait a few seconds for deployment.

Run

Run http://localhost:8080/cra-maven-war from the browser

Run from another path

Rename cra-maven-war.war for example to cra-maven-war-another-path.war.
Deploy it to the Tomcat.
Run http://localhost:8080/cra-maven-war-another-path from the browser

Authors

Alexander Lapygin

Inspired by

Deploy React Applications in a Servlet Environment by
Dimitri De Franciscis (megadix)

License

Licensed under the MIT license.