#simple transport company order of petrol management for Brest java course(2018)
-
Check
$java -version
$export JAVA_HOME = ..
$mvn -version
Get a copy from clone or download section on gitHub.
-
Build
from main directory
$mvn clean install -
Preparing reports
$mvn site $mvn site:stage check:/target/stage/index.html ``
-
To run jetty server
To run rest service go to dir* -/rest-producer mvn jetty:run
mvn -pl rest-producer/ jetty:run
Once started, the REST server should be available at:
http://localhost:8088
Try CURL:
curl -v localhost:8088/trucks
curl -v localhost:8088/trucks/1
curl -H "Content-Type: application/json" -X POST -d '{"truckCode":"BY3354","purchasedDate":"xyz", "descriptions":"my truck"}' -v localhost:8088/trucks
curl -X "DELETE" localhost:8088/trucks/1
curl -v localhost:8088/orders/
curl -X "DELETE" localhost:8088/orders/2
curl -v http://localhost:8088/orders?start=2007-01-01&end=2008-01-01
#Angular
what you will need Prerequisites
npm is required how to install npm
This project was generated with Angular CLI version 1.7.3.
Move to directory ng-client
-
when in directory you will need npm - run npm install
-
To run test- from directory run - ng test
7.To start angular run - ng serve -o
- /ng-client app runs on http://localhost:4200/
Travis CI integration https://travis-ci.org/Brest-Java-Course-2018/valentine-ezugu/
To be found in this projects are software products of the following versions :
JDK: 1.8
Maven: 3.3.9
Spring: 4
jetty 9.4.8.v20171121
travis ci - also to add jenkins