Full Stack Application Engineering Project
- Install maven (see the steps below)
- Run
git clone https://github.com/TroyStopera/prime-project.gitorgit pull origin masterto get the latest version of the repo - Run
mvnto build the code and package it into a jar - Run
mvn exec:javato run the project - Open
http://localhost:8080/in a web browser.
brew install maven
- Download the Maven .zip archive here.
- Extract the archive. I'll assume that you extracted it to
~/maven. - Add the following line to your
.bash_profile:export PATH=${PATH}:~/maven/bin.
- Download the Maven .zip archive here.
- Extract the archive. I'll assume that you extracted it to
C:\maven. - Add
C:\maven\binto yourPATHenvironment variable: - Click on the Start button > Right click on
Computer> Click onProperties
. - Click on
Advanced System Settings. In the popup window that appears, select theAdvancedtab > Click onEnvironment Variables.
. - Find the variable named
PathunderSystem variablesand click theEditbutton.
. - Add
;C:\maven\binto the end of the value, then clickOK.
<project-root>- runmvn package exec:javato compile and run the webserversrc- code goes in heremainjava- Java code goes in hereresources- files needed by the webserver that aren't code go in herewww/index.html- the homepagewww/static- any files put in here are served fromhttp://localhost:8080/static/. So file namedjquery.jswill be accessible fromhttp://localhost:8080/static/jquery.js.
test/java- Java unit tests go in here
docs- documentation goes in heretarget- maven puts compiled code and jars in here