Skip to content

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

License

Notifications You must be signed in to change notification settings

softspiders/cra-maven-war-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.