Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

fabric8-launcher/launchpad-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d221480 · Nov 27, 2017
Jan 31, 2017
Jan 18, 2017
Oct 11, 2017
Sep 22, 2017
Jan 13, 2017
Oct 4, 2017
Nov 17, 2017
Dec 5, 2016
Nov 27, 2017
May 16, 2017
Aug 14, 2017
Nov 16, 2017

Repository files navigation

Launchpad Backend

This repository is no longer maintained!

Build Status

This code generator project which is a Java backend system exposes several JBoss Forge commands using a REST endpoint. The backend runs within a WildFly Swarm container and is called from an Angular Front application responsible to collect from an end user the information needed to generate a Zip file containing a Maven project populated for an Eclipse Vert.x, Spring Boot, WildFly Swarm or Node.js container.

  • Build this project:
$ mvn clean package -s configuration/settings.xml

Remark : This project requires that you compile this github project.

  • Set the following environment variables:

      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_HOST=localhost
      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_PORT=8080
    
  • Execute the uber-jar in the target folder with:

$ java -Dswarm.port.offset=100 -jar target/launchpad-backend-swarm.jar

Then follow the front-end README to run the front-end.

Build and Run the Unit Tests

  • Execute:

      $ mvn clean install
    

Run the Integration Tests, Optionally Building

  • You need to set the following environment variables before running the integration tests:

      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_HOST=localhost
      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_PORT=8080
    
  • To build the project and run the integration tests, allowing Maven to start the WildFly Swarm server:

      $ mvn clean install -Pit
    
  • To skip building and just run the integration tests, allowing Maven to start the WildFly Swarm server:

      $ mvn integration-test -Pit
    

Reindex the booster catalog

Run the following command, replace TOKEN with the value defined in the environment variable LAUNCHPAD_BACKEND_CATALOG_REINDEX_TOKEN. Doesn't need to be specified if the environment variable doesn't exist in the running environment:

    $ curl -v -H "Content-Type: application/json" -d '{}' -X POST  https://localhost:8180/launchpad/catalog/reindex\?token\=TOKEN