###Prepare code and database for Rest App
-
Build entire project with maven
mvn clean install
or runbuild.bat
. -
Run mysql server, update
employee-rest-app/src/db/liquibase.properties
with mysql credentials. -
Run
run-liquibase.bat
or go toemployee-rest-app
and run liquibase command:mvn liquibase:update
.
-
Run
run-rest-app.bat
or go toemployees-rest-app
and runmvn clean tomcat7:run-war
.
You can run app without maven tomcat plugin. Simply copy employees.war
from {project_home}/employees-rest-app/target
directory to
{tomcat_home}/webapp
directory and run server. Also you must create context.xml with database connection or you can take it from
{project-home}/employees-rest-app/target/tomcatconf/context.xml
.
To run UI App you must have Node JS installed and Bash (Git bash for example).
You can run server in bash, go to {project_home}/employees-ui
and execute npm start
.
Open url: http://localhost:8000/app/index.htm