- Java 8 or greater
- NPM 2.13 or greater
- Maven 3.3 or greater
- MySQL 5.5 or greater
To configure the system:
- Run
npm installfrom inside the application's folder - Create database schema for the application with the name of your preference (the tables are created and populated automatically during the first run)
- Open the configuration file
src/main/resources/config/application-dev.ymland set:spring.datasource.urlwith the database host, port and schema (defaults to localhost, 3306 and acme respectively).server.portwith server port (defaults to 8080)
After that execute mvn spring-boot:run from inside the application's folder to run the application and navigate to http://localhost:8080 in your browser (note the port number might be different according to your configuration and sudo might be necessary for ports below 1024).
To build a distribution package:
- Run
mvn clean package - Copy
target/acme-1.0.1.warfile to a new folder - Inside this folder create two subfolders, one called
configand one calledmediaResources - Copy
src/main/resources/config/application-dev.ymlinto theconfigfolder
To run the distribution packaged application:
- Create database schema for the application with the name of your preference (the tables are created and populated automatically during the first run)
- Configure the database and server port in the
config/application-dev.ymlfile as explained above - Run
java -jar acme-1.0.1.war(sudo might be necessary if configured with a port below 1024)
Finally navigate to http://localhost:8080 in your browser (note the port number might be different according to your configuration and deployment environment).