A template for Spring MVC project integrated with soy and react, built with Ant
ant tasks (to be run in project root directory)
ant generate-parseinfo-soy
will compile soy templates into java classes and store them in build-transient-src
ant resolve
retrieves library jars into /war/WEB-INF/lib
ant compile
compiles java source code to /war/WEB-INF/classes
ant package
creates a WAR file for deployment and stores it in /target
npm scripts (to be run in web application root directory)
npm run build
transpiles and bundles javascript source code
npm run lint
checks code styles and looks for potential bugs in javascript source code
run the project
- Set up local tomcat server by downloading a tomcat distribution
- Make sure tomcat is running locally - localhost:8080 (can be started by running the startup script in /bin in tomcat directory)
- Simply run
ant
in project root if you have $CATALINA_HOME set up If not, manually copy WAR file generated byant package
into /webapps in tomcat directory - Go to
localhost:8080/dream
andlocalhost:8080/dream/hello