-
Notifications
You must be signed in to change notification settings - Fork 7
Development Environment How to Run
See also Development Tools and Development README.md
To run up the project:
- Install the Development Tools in the link above
- Pull down the project code from GitHub
- Run command: from /app > mvn spring-boot:run -Pspring.profiles.active=dev
You may see one of two build failures here:
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:06 min [INFO] Finished at: 2021-06-15T17:23:29+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project smallwindow-21: Fatal error compiling: invalid target release: 11 -> [Help 1]
If this occurs then make sure the Java version in your pom.xml matches the Java version that is installed on your machine.
OR
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
This means that your local MySQL database is not up and running. See step 4 below.
-
Start up a Docker MySQL image by running command: docker-compose -f src/main/docker/local-dev.yml up
-
Go to http://localhost:8080/ to see the application running.****