Skip to content

HappyValleyIO/koil

Repository files navigation

koil

Build Status

This is a starter template for building monolithic Spring based applications using modern web tooling.

Getting started

We expect a postgres instance to be available for testing on port 5432 that allows connections from user postgres with an empty password.

For running in dev mode, we expect a minio instance to be running locally. You can spin this up by using the docker-compose file in the root of the directory.

Developing

I recommend installing the Pebble Intellij plugin. Note there are post-installation instructions on the github page for the plugin.

You can type var and hit Crtl + Space to have it autocomplete a type hint at the top of the file, like:

{# @pebvariable name="email" type="java.lang.String" #}

This lets the plugin know that any reference to email should use the intellij autocomplete for strings.

Another step toward great dev flow is to mark the base language of pebble files as HTML. You can do this by:

  • Opening Settings Ctrl + Alt + S
  • Navigating to Languages & Frameworks
  • Opening Template Data Languages
  • Adding the src/main/resources/templates directory and marking the base language as HTML

Live Reload

Spring DevTools comes with LiveReload out of the box. http://livereload.com/

While running in the dev profile, a line of javascript is added to each page that will open a websocket to the server so that it can refresh the page on updates.

Emails

For more email template look at https://htmlemail.io/

Docs

We use mkdocs to build this documentation.

Install dependencies

You'll need python, pip and mkdocs installed to work on these docs.

I would use the pyenv-installer to install py-env. Then install a recent version of python:

pyenv install 3.8.2
pyenv global 3.8.2

Followed by an appropriate version of pip by following the instructions here.

Then install the dependencies by running pip install -r requirements.txt in the docs folder.

Developing

To run the docs in dev mode, run the command mkdocs serve.

About

JVM-based SaaS starter kit.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •