npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-spring-magic

v0.1.1

Published

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

Downloads

4

Readme

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

  • npm (https://www.npmjs.com/get-npm)
  • yo (just run: npm install -g yo)

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 !!