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-springboot-kickstart

v1.4.0

Published

A Yeoman generator for a Webapp with Maven + SpringBoot + MongoDB + Mail + Bootstrap + I18N + Docker

Downloads

156

Readme

Unicorn Dependency Status Downloads Version

SpringBoot Kickstart

is a Yeoman generator that creates a basic SpringBoot application with basic authentication, Thymeleaf, javax.mail and MongoDB. Bootstrap 4 (alpha 4) is used on the frontend side. Since v1.0.1 you can choose between Bootstrap 4 and 3.3.6 but keep in mind that the frontend HTML is still for Bootstrap 4 and may look shitty.

It has absolutely nothing to do with Kickstart but was inspired by Bootstrap Kickstart.

Table of Contents

Quick install guide

You need to have Node.js installed.

$ npm install -g yo
$ npm install -g generator-springboot-kickstart
$ yo springboot-kickstart

Running

  1. Create directories for mongodb: $ mkdir data && mkdir data/db && mkdir log
  2. Create keystore: $ ./generateKeygen.sh (chmod it, if it's not executable)
  3. Update settings in /src/main/resources/application.properties especially the keystore related
  4. Start MongoDB: $ mongod --config mongodb.conf
  5. Start the webapp (instructions for IntelliJ below, for cmdline use google)

I recommend setting the following environment variables when developing:

deleteRoot=true
resetSettings=true

When using those, you'll have a clean setup after every build and a new root user is created every launch.

Using IntelliJ IDEA

The generated app can run without problems using the following run configuration:

runconf

Docker

Since 1.3.0 there will be two new files created: docker-compose.yml and docker/Dockerfile. Those contain everything you need to run the webapp inside Docker.

Since 1.3.1 Docker is optional.

Since 1.3.2 there is a script to start the docker stuff.

Please note that you need the latest version of Docker compose for this, because I'm using the new config file format.

Please note that this will not run in Mac OS X or Windows, because MongoDB can't handle vboxfs.

To run your app as a Docker container you need to follow this steps:

  1. Start the webapp at least once to make sure there are no errors
  2. (you can skip this, if you used the keygen script) Edit line 20 of the Dockerfile and replace the ../development.pkcs12 with the name of the keystore you are using
  3. In the root directory of your project run docker-compose build in a terminal and let it build the needed images
  4. Still in the root directory run docker-compose up
  5. Go to http://[your-docker-host]:8080