Full Stack Application Engineering Project
- Install maven (see the steps below)
- Run
git clone https://github.com/TroyStopera/prime-project.git
orgit pull origin master
to get the latest version of the repo - Run
mvn
to build the code and package it into a jar - Run
mvn exec:java
to 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\bin
to yourPATH
environment variable: - Click on the Start button > Right click on
Computer
> Click onProperties
. - Click on
Advanced System Settings
. In the popup window that appears, select theAdvanced
tab > Click onEnvironment Variables
. . - Find the variable named
Path
underSystem variables
and click theEdit
button. . - Add
;C:\maven\bin
to the end of the value, then clickOK
.
<project-root>
- runmvn package exec:java
to compile and run the webserversrc
- code goes in heremain
java
- 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.js
will 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