Giter Site home page Giter Site logo

palmurugan / generator-springboot-kickstart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lfuelling/generator-springboot-kickstart

0.0 2.0 0.0 1.35 MB

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

License: Other

JavaScript 17.72% Dockerfile 0.83% Shell 0.82% Java 39.41% CSS 14.69% HTML 26.52%

generator-springboot-kickstart's Introduction

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

generator-springboot-kickstart's People

Contributors

lfuelling avatar

Watchers

 avatar  avatar

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.