https://github.com/softspiders/cra-ts-maven-war-starter
An example of building a war of create-react-app in TypeScript on Maven
https://github.com/softspiders/cra-ts-maven-war-starter
build cra create-react-app maven mini mvn react softspider softspiders ss template ts typescript war
Last synced: 3 months ago
JSON representation
An example of building a war of create-react-app in TypeScript on Maven
- Host: GitHub
- URL: https://github.com/softspiders/cra-ts-maven-war-starter
- Owner: softspiders
- License: mit
- Created: 2019-12-25T05:38:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-11T10:48:59.000Z (over 6 years ago)
- Last Synced: 2025-01-15T20:20:09.742Z (over 1 year ago)
- Topics: build, cra, create-react-app, maven, mini, mvn, react, softspider, softspiders, ss, template, ts, typescript, war
- Language: HTML
- Size: 207 KB
- Stars: 1
- Watchers: 3
- 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-ts-maven-war-starter*
An example of building a war of [*create-react-app*](https://github.com/facebook/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*](https://github.com/softspiders/cra-maven-war-starter)
## Direct descendants
[*cra-ts-uilib-storybook-lerna-mvn-war*](https://github.com/softspiders/cra-ts-uilib-storybook-lerna-mvn-war)
---
## 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
* [*TypeScript*](https://www.typescriptlang.org/)
---
## 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-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*](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*](http://localhost:8080/cra-ts-maven-war-another-path) from the
browser
---
## Authors
[Alexander Lapygin](https://github.com/AlexanderLapygin)
---
### License
Licensed under the [MIT license](./LICENSE).