Skip to content

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

License

Notifications You must be signed in to change notification settings

softspiders/cra-ts-maven-war-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOFTSPIDERS

cra-ts-maven-war-starter

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


Feature tags

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

Direct ancestors - also by code

cra-maven-war-starter

Direct descendants

cra-ts-uilib-storybook-lerna-mvn-war


Requirements


Build war

npm run build:war

Hot deployment

Start Tomcat server.

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

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

Wait a few seconds for deployment.

Run

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

Run from another path

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


Authors

Alexander Lapygin


License

Licensed under the MIT license.