Skip to content

oliver-brm/vertx-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertx.x Starter

Build Status

Vert.x Starter is an open-source web application for creating Vert.x applications.

Quickstart

Simply click on Generate Project on the web interface to download a project archive.

If you are a CLI adept, you can use any http client (curl, httpie) to invoke the API.

curl -X GET https://start.vertx.io/starter.zip -d groupId=com.acme -d language=java -d vertxVersion=4.5.1 -o starter.zip

API

Generating a Vert.x application

https://start.vertx.io/starter.{archiveFormat}
Note
archiveFormat can be zip, tgz, tar.gz, etc. if the project generator can handle the format, it will use the appropriate compression tool.

You can provide the following query parameters to customize the project:

  • Basic information for the generated project groupId, artifactId

  • language: java or kotlin

  • buildTool: maven or gradle build tool

  • vertxVersion: the Vert.x version

  • vertxDependencies: a comma separated list of artifactIds of the vert.x modules

  • packageName: code package name, derived from groupId and artifactId by default

  • jdkVersion: which version of the JDK to use, defaults to 11

Full example:

curl -X GET \
  'https://start.vertx.io/starter.zip?artifactId=starter&buildTool=maven&groupId=io.vertx&language=java&vertxDependencies=&vertxVersion=4.5.1' \
  -o starter.zip

The HTTPie equivalent:

$ http https://start.vertx.io/starter.zip \
  groupId==io.vertx \
  artitfactId==starter \
  language==java \
  buildTool==maven \
  vertxVersion==4.5.1 \
  vertxDependencies==vertx-web,vertx-web-client \
  -o starter.zip

Vert.x Starter metadata

The vert.x starter metadata lists all the capabilities proposed by the API. The metadata is used to build the Web UI is exposed to ease the creation of third-party clients (IDE integration, CLI, etc).

https://start.vertx.io/metadata

Running your own starter

Building fat jar

In order to build it, you will need Java 17.

./mvnw clean package -DskipTests

Running the app locally

# Configure analytics dir
export VERTX_STARTER_ANALYTICS_DIR=target
# Build frontend first
./mvnw clean process-resources
# Run backend in redeploy mode
./mvnw compile vertx:run -Dskip.npm

Running frontend in development mode

cd src/main/frontend
npm run dev
Note
The frontend development server expects the backend to listen on localhost port 8080.

Releasing

Note
The following commands assume you have forked the project and upstream is the vert-x3/vertx-starter remote repository.

To release the project, proceed as follows.

First, tag the last commit in master branch:

STARTER_VERSION=$(./mvnw org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')
git tag -f -a ${STARTER_VERSION} -m "Version ${STARTER_VERSION}"
git push upstream  --tags

Close the corresponding milestone on GitHub.

Then merge the master branch into the prod branch:

git checkout prod
git pull
git merge master
git push

GitHub Deploy job will automatically redeploy the starter if the prod branch build passes.

Eventually, checkout master again and update the version:

git checkout master
./mvnw versions:set -DgenerateBackupPoms=false
git add pom.xml
git commit -s
git push upstream && git push

License

Vert.x Starter is Open Source software released under the Apache 2.0 license.

About

Home of the Vert.x Starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 60.8%
  • Vue 19.1%
  • FreeMarker 12.1%
  • JavaScript 4.7%
  • HTML 1.5%
  • Shell 1.5%
  • SCSS 0.3%