https://github.com/softspiders/cra-maven-war-starter
An example of building a war of create-react-app on Maven
https://github.com/softspiders/cra-maven-war-starter
build cra cra-maven-war create-react-app javascript js maven mini react softspider softspiders ss template war
Last synced: 2 months ago
JSON representation
An example of building a war of create-react-app on Maven
- Host: GitHub
- URL: https://github.com/softspiders/cra-maven-war-starter
- Owner: softspiders
- License: mit
- Created: 2019-12-18T18:44:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-27T19:43:05.000Z (over 6 years ago)
- Last Synced: 2025-01-15T20:20:11.291Z (over 1 year ago)
- Topics: build, cra, cra-maven-war, create-react-app, javascript, js, maven, mini, react, softspider, softspiders, ss, template, war
- Language: JavaScript
- Homepage:
- Size: 197 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[SOFTSPIDERS](https://github.com/softspiders/softspiders)
# *cra-maven-war-starter*
An example of building a war of [*create-react-app*](https://github.com/facebook/create-react-app) on Maven
## Feature tags
- build
- create-react-app
- maven
- starter
- template
- war
## Direct ancestors
[-*maven*, *war*](https://github.com/softspiders/cra-starter)
## Direct descendants - also by code
[+*typescript*](https://github.com/softspiders/cra-ts-maven-war-starter)
## Requirements
* [*create-react-app*](https://facebook.github.io/create-react-app/)
* [*JDK*](https://java.com/ru/download/) >= 1.5
* [*Maven*](https://maven.apache.org/)
* [*Node*](https://nodejs.org/en/download/package-manager/)
* [*Tomcat*](http://tomcat.apache.org/) or another servlet container - for running
## Build war
```sh
npm run build:war
```
## Hot deployment
[Start Tomcat server](https://www.webucator.com/how-to/how-start-stop-apache-tomcat-from-the-command-line-windows.cfm).
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*](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*](http://localhost:8080/cra-maven-war-another-path) from the browser
## Authors
[Alexander Lapygin](https://github.com/AlexanderLapygin)
## Inspired by
[*Deploy React Applications in a Servlet Environment*](https://www.megadix.it/blog/create-react-app-servlet/) by
[Dimitri De Franciscis (megadix)](https://github.com/megadix)
### License
Licensed under the [MIT license](./LICENSE).