Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
/ awesome-blog Public archive

Creating modern web applications using Spring Boot and React.js - workshop

Notifications You must be signed in to change notification settings

rapasoft/awesome-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Developing modern web application with Spring Boot with React.js

This is a skeleton application you'll be starting with in the workshop. You'll definitely need:

Further advices

  • Do have mvn, java, npm, git commands available on global PATH
  • On Windows,
  • Ask questions if you don't understand something, wait for discussion if you have some comments or opinions

Obtaining the code

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

Building and running the application

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

Backend only

To build backend only run:

mvn clean package

Frontend only

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.

Further information and links

Useful tools

About

Creating modern web applications using Spring Boot and React.js - workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published