- NodeJS 10+ - https://nodejs.org/en/
- JDK 1.8 - https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
- Maven 3.6 - https://maven.apache.org/download.cgi
Setting environment variables:
-
add on the PATH variable: "C:\Program Files\Java\jdk1.8.0_181"
-
add the JAVA_HOME variable: "C:\Program Files\Java\jdk1.8.0_181\bin"
This application is divided into front-end and back-end and must have both servers initialized.
Run the commands into the "frontend' folder.
Install project dependencies
npm install
Start the frontend server
ng serve --proxy-config proxy.config.json
The server will be run on http://localhost:4200/
Run the commands into the "backend" folder.
There are 2 ways to start the back-end server:
-
Import the project into an Java IDE and run the com.ul.test.TestApplication.java file.
-
Execute the following comands into back-end folder:
mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.707 s
[INFO] Finished at: 2019-06-05T11:08:20-03:00
[INFO] ------------------------------------------------------------------------
cd target
java -jar test-0.0.1-SNAPSHOT.jar
The server will be run on http://localhost:8080/