Socket
Socket
Sign inDemoInstall

@cobaltinc/bloom

Package Overview
Dependencies
11
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cobaltinc/bloom

Create Spring application with one command


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Bloom 🌼

Create Spring application with one command built by Cobalt, Inc.

Latest npm version PRs welcome

:rocket: Getting started

npm i -g @cobaltinc/bloom

:sparkles: Commands

new <project-name>

Create new spring application.

Options
OptionTypeDescription
-r, --remotestringGitHub repository url for custom template.
-t, --tokenstringTo use the private repository, you need to set up GitHub Personal access token.

generate subsystem <subsystem-name>

Generate new subsystem in application.

Make directories and build file in subsystem:

- subsystem
  - <subsystem-name>
    - component
      - src
        - main
        - test
      - build.gradle[.kts]
    - interface
      - src
        - main
        - test

:bookmark: Custom Template

You can create custom templates for new projects. For help creating a new template, see the templates directory.

Usage

bloom new <project-name> --remote <github-repository-url>

Interpolation

When project created from the template, text are converted through mustache syntax.

Default
ParamsTypeDescription
PROJECT_NAMEstringThe project name you entered.
PACKAGE_NAMEstringConvert the project name to lower case.
APPLICATION_NAMEstringConvert the project name to PascalCase. Typically used for Application class.

Additional

If you need additional data, you can create a bloom.json file in custom template repo:

{
  "args": [
    {
      "type": "number",
      "name": "VERSION",
      "message": "Set initial version",
      "min": 1,
      "max": 5
    },
    {
      "type": "text",
      "name": "DATABASE_URL",
      "message": "Set database url"
    },
    {
      "type": "password",
      "name": "DATABASE_PASSWORD",
      "message": "Set database password"
    },
    {
      "type": "select",
      "name": "SELECT",
      "message": "Pick your database",
      "choices": [
        { "title": "MySQL" },
        { "title": "MariaDB" },
        { "title": "PostgreSQL" },
        { "title": "Oracle" }
      ]
    }
  ]
}

:page_facing_up: License

Bloom is made available under the MIT License.

Keywords

FAQs

Last updated on 06 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc