0.1.1 • Published 5 years ago

generator-spring-magic v0.1.1

Weekly downloads
8
License
-
Repository
github
Last release
5 years ago

generator-spring-magic

Yeoman generator for creating very basic web application with Spring MVC and Tomcat.

Create a basic spring web application in just 2 seconds !!

Prerequisites

Installing spring-magic

generator-spring magic can be installed from npm, running following commad (after having all prerequisites in machine):

npm install -g generator-spring-magic

Uses

Quick set-up spring-boot web application ( 2 seconds magic)

we can trigger generator to generate basic spring-boot web application with following command:

yo spring-magic [your-app-name]

By doing this, spring-magic will generate a spring web project with following properties: project name: [your-app-name] base name (artifact-id): [your-app-name] goup-id:com.example.[your-app-name]

Suppose, if [your-app-name] is magic, then it will instantly generate spring-boot web project will following structure:

-- magic
    |-- pom.xml
    `-- src
        |-- main
        |   |-- java
        |   |   `-- com
        |   |       `-- example
        |   |           `-- magic
        |   |               `-- DemoApplication.java
        |   `-- resources
        |       |-- application.properties
        |       `-- static
        |           `-- index.html
        `-- test
            `-- java
                `-- com
                    `-- example
                        `-- magic
                            `-- DemoApplicationTests.java

Set-up spring-boot web application answering 2 questions magic

we can generate spring-boot web application with few propeties provided by user with following command:

yo spring-magic

By doing this, spring-magic will ask you following questions: 1. What is the name of your project (or artifact)? 2. What is your group Id for your package? Based upon our answer, it will generate spring-boot web application with mentioned properties.

After project generation, open it with intelliJ and build and run the project. If everything goes well, we will see a running web application at: http://localhost:8080/

Thanks for reading. Any suggestion and/or improvement are highly welcome !!