Installing Node.js is required only for local development. Maven frontend-maven-plugin plugin will download automatically the appropriate Node.js version when building the project.
The application builds the client using node version v14.17.5
. It is recommended using the Node Version Manager for managing the installed node version:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install v14.17.5
nvm use v14.17.5
Before running the app in development mode, update .env.development
file. If the default configuration options are used for the web application, no changes are required.
# Application title
REACT_APP_TITLE=OpertusMundi Helpdesk Web Client
# API url used by webpack dev server proxy
REACT_APP_ROXY_SERVER=http://localhost:9080
# Enable/Disable redux action logger
REACT_APP_ENABLE_LOGGER=false
# Disable browser
BROWSER=none
# Development server port
PORT=3000
In the project directory, install dependencies with:
npm install
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.