GithubHelp home page GithubHelp logo

davetownsend / generator-spring Goto Github PK

View Code? Open in Web Editor NEW
66.0 7.0 35.0 125 KB

A yeoman generator for Spring Boot & Spring Cloud applications

Home Page: https://www.npmjs.com/package/generator-spring

License: MIT License

JavaScript 85.47% Java 13.76% HTML 0.77%
yeoman generator-spring javascript scaffolding spring-boot spring-cloud

generator-spring's Introduction

logo

generator-spring Build Status

A Yeoman generator for scaffolding and bootstrapping Spring Boot and Spring Cloud applications. Provides the same selectable options as Spring Initializr, but with and interactive CLI interface so your hands can stay where they belong, on the keyboard!

Getting Started

Install Yeoman

$ npm install -g yo

Install generator-spring

$ npm install -g generator-spring

Initiate spring-generator!

$ yo spring

The interactive CLI menu will guide the way.

Extras (Sub-generators)

Creates a REST endpoint

$ yo spring:rest

Creates a REST endpoint with HATEOAS support (has dependency on choosing the hateoas starter option)

$ yo spring:hateoas

Creates an initial Thymeleaf view (has dependency on choosing the Thyemleaf starter option)

$ yo spring:route

TODO

  • Add the new Spring Cloud libs supported with Spring Boot 1.5.x
  • Add support for createing a serverless (AWS) project with Spring Cloud Function.
  • Add React support. This will essentially scaffold an opinionated react SPA (webpack/es6/material-ui) as the front end.

License

MIT License

generator-spring's People

Contributors

davetownsend avatar tomaslin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-spring's Issues

Maven support

The Spring Boot generator should provide the option to use Maven instead of Gradle.

Groovy support

The Spring Boot generator should provide the option to use Groovy instead of Java.

(Great job with this by the way. Thank you!)

Activity?

Is this project still being actively maintained?

npm install yo spring-generator -g fails as it is not published to the npm registry

Hello,
This looks very cool! I'm trying to work on combining Yeoman + Thymeleaf, and this a good step.

When I try to install it:
npm install yo spring-generator -g
I get:
npm ERR! 404 'spring-generator' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it

I can still install a private npm:
npm install git://github.com/tomaslin/generator-spring.git
yo spring

Spring Boot Redis Version

@davetownsend - I created a new project which will use redis and v1.5.3.RELEASE of spring boot. It seems the redis jar has been renamed.

The build fails with this error

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-redis:jar is missing. @ line 31, column 21
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project io.github.emeraldjava.realtimerates:realtimerates:0.0.1-SNAPSHOT (/home/pauloconnell/projects/github/realtimerates/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-redis:jar is missing. @ line 31, column 21
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

From the documentation here : https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-redis

Starter for using Redis key-value data store with Spring Data Redis and the Jedis client. 
Deprecated as of 1.4 in favor of spring-boot-starter-data-redis

but should be updated to https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis .

I'm creating an issue so i can submit a pull request for you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.