- Install the angular-cli with command :
npm install -g @angular/cli@1.7.4
-
JDK 8 (set JAVA_HOME environment variable)
-
The Node.js version compatible with your angular app
-
MAVEN (to use mvn command else use in windows ./mvnw.cmd or in linux ./mvnw instead)
-
IDE ( i.e. Eclipse for java and visual studio code for typescript/angular projects)
Execute in the main folder of this repo:
mvn clean spring-boot:run -Pbuild-ui
Open browser on localhost:8080:
If you want to build a single jar to be executed standalone:
mvn clean package -Pbuild-ui
After all cases run:
java -jar target/*.jar
Open browser on localhost:8080
The application exposes a rest api (**CampaignController) that connects to db.
For the campaign entity you can call using these endpoints:
- campaign/all : Get Request that returns all campaign entities created (empty object if nothing exists)
- campaign/{id} : Get Request that rturn a campaign entity with your specified id.
You can use Swagger UI app to call your REST API accessing to /swagger-ui.html endpoint. An example to call the post api/users :
You can use the live reload for spring boot when you use the spring-boot-plugin.
Run:
mvn clean spring-boot:run -Pdev
Create an account on keroku .
After install the heroku-cli
npm install -g heroku
Then:
heroku plugins:install heroku-cli-deploy
heroku create nanoapps --no-remote
To deploy the jar file, execute in the main folder of this repo:
heroku deploy:jar target/app.jar --app nanoapps
View app
Git repo configured for continuous integration with travis .
For the configuration travis I used the .travis.yml and .travis-deploy-heroku.sh files.