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

ivans-innovation-lab/my-company-rugs-domain-generator

Repository files navigation

projects/my-company-rugs-domain-generator

This Rug project contains a generator for a Spring Boot command side API.

Rugs

Rugs are typically run using the Atomist Bot in Slack. To run Rugs locally, you must first install the following tools:

Once those tools are installed, you can clone this repository and install its dependencies with the following command.

$ ( cd .atomist && npm install )

You can install your archive locally

$ rug install

or publish to remote 'atomist' repositories

Slack: @atomist team (you should find YOUR_TOKEN in Slack response)
$ rug publish --id=YOUR_TOKEN

NewCommandSideProject

The NewCommandSideProject generator creates a new Spring Boot project for the command side (aggregate).

Prerequisites

There are no prerequisites to running this generator.

Parameters

To run this generator you must supply the following parameters.

Name Required Default Description
Project Name Yes A valid GitHub repository name. It should be 21 characters or less to avoid truncating name when the its Slack channel is created.
aggregateName Yes Aggregate Aggregate class name, e.g., "Blog".
version No 0.1.0-SNAPSHOT Semantic version of the project.
description No My new project A brief description of the project.

Running

Run it as follows:

$ cd parent/directory
$ rug generate my-company-rugs:command-side-project-generator:NewCommandSideProject \
    my-company-customer-domain \
    aggregateName=Customer \
    version=0.1.0-SNAPSHOT \
    description="Command Side - Customer"

Note the first parameter, the project name, is different in that you do not need to supply the name of the parameter, just the value. This is because the project name parameter is required for all generators. This will create a directory named my-company-customer-domain and populate it with a working aggregate. If you are happy with the change, commit the changes.

$ cd my-company-customer-domain
$ git init
$ git add .
$ git commit -m 'Initial version generated by Atomist generator'

See the README in the generated project for further instructions.


Created by Ivan Dugalic@lab. Need Help? Join our Slack team.