Skip to content

How to deploy a create-react-app boilerplate to a Java EE Servlet engine

License

Notifications You must be signed in to change notification settings

megadix/create-react-app-servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample code for
http://www.megadix.it/blog/create-react-app-servlet/

Quickstart

  1. Build project using Maven:
mvn package

The project is configured to build local profile by default.

  1. Deploy create-react-app-servlet.war to your favourite servlet engine

  2. Access application at
    http://localhost:8080/create-react-app-servlet/

Note: depending on your environment you would need to change PUBLIC_URL and REACT_APP_ROUTER_BASE in profiles. For example, Weblogic uses port 7001 instead of 8080.

Production Build

To produce a production build, run maven with the -Pprod switch:

mvn package -Pprod

About

How to deploy a create-react-app boilerplate to a Java EE Servlet engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published