An open API service indexing awesome lists of open source software.

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

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).