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

simple-spring-gen

v1.2.4

Published

Simple Spring Boot code generator

Downloads

2

Readme

Simple Spring Gen - Spring Boot Starter Code Generator

===================

npm Package

System Requirements

  • node: v8.0.0+ - sudo apt install node
  • npm: v6.0.0+ - sudo apt install npm
  • npx: installed - sudo npm i -g npx

:cloud: Quick Start

The quickest way to get started is use npx and pass in the required parameters of the project you want to create.

npx simple-spring-gen --groupId=<groupId> --artifactId=<artifactId> [--grpc] [--kafka] [--jpa]

Example:

npx simple-spring-gen --groupId=io.ntduycs --artifactId=account-service --grpc --jpa
npx simple-spring-gen --groupId=io.ntduycs --artifactId=product-service --kafa
npx simple-spring-gen --groupId=io.ntduycs --artifactId=notification-service --grpc --kafka

The process will take about 1-2 minutes based on your network. After that, your project is in ready-to-start. Start your SpringBoot app as usual:

OPTIONAL - If the --grpc parameter was passed, we need to compile the gRPC module before being possible start Spring app

# Compile grpc module
cd "<project-dir>/<project-dir>-grpc"
mvn clean install

OPTIONAL - If the --kafka parameter was passed, we need to compile the Kafka module before being possible start Spring app

# Compile grpc module
cd "<project-dir>/<project-dir>-kafka"
mvn clean install

OPTIONAL - If the --jpa parameter was passed, we need to compile JPA entities before being possible start Spring app. For starter purpose, the codegen includes a sample entity (SampleEntity), you should remove them and add your business entities and compile them before start Spring instance

# Compile entities
cd "<project-dir>/<project-dir>-service"
mvn clean install

RECOMMENDED - You might want to look at .yaml files at resources folder and make some updates on it.

:clipboard: Available Options

  • --groupId - REQUIRED - Maven group ID
  • --artifactId - REQUIRED - Maven artifact ID, should have the -service suffix (e.g., product-service, notification-serivce)
  • --grpc - OPTIONAL - Add gRPC supports.
  • --kafka - OPTIONAL - Add Kafka supports.
  • --jpa - OPTIONAL - Add JPA, Flyway & Querydsl supports. Currently, it is only supported for Postgres.

Thanks! :heart: