This is a skeleton application you'll be starting with in the workshop. You'll definitely need:
- JDK 8
- Maven 3.3.x. Even though most modern IDEs have Maven bundled we will need the latest version.
- Node.js 4.4.x + npm 2.15.x
- Git client
- IDE, preferably IntelliJ IDEA (Ultimate edition - 30 day trial). You may use other IDE but you need to know it well.
- Patience and pro-learning attitude :)
- Do have
mvn
,java
,npm
,git
commands available on globalPATH
- On Windows,
- have project files within short directory path (e.g.
C:\dev\work
) - use Git Bash for command line
- have project files within short directory path (e.g.
- Ask questions if you don't understand something, wait for discussion if you have some comments or opinions
Go to Itera Gitlab and copy repository url. Then clone it using Git Bash (or in IDE):
git clone http://gitlab.intra.itera.no/pavol.rajzak/spring-boot-react-workshop.git
Simply put, to build everything just run this command in the root directory (with pom.xml)
mvn clean package -Pbuild-frontend
This will build both backend and frontend and create an executable jar. Then, application can be started via
mvn spring-boot:run
To build backend only run:
mvn clean package
In frontend directory (cd <ROOT>/src/main/frontend
) execute:
npm start
to run the webpack-dev-server
. This will start frontend app in development mode with hot-reloading capabilities.
To build frontend as production-ready bundle run:
npm run build
This command is however executed when maven builds the whole project (using build-frontend
profile),
so you should use it only on rare occasions.