Skip to content

CIDAC/java-templates

Repository files navigation

Java Lazybones Templates

This templates helps you to create portable Java projects.

We recommend you to use Ubuntu to the correctly use of this templates.

1. Prerequisites

1.1 Software installation

In order to generate a Java project this template you need to install the following softwares:

  • SDKMAN - Software Development Kit Manager

Open your terminal and type the command below:

sdk install java
sdk install maven
sdk install gradle
sdk install lazybones

Lazybones allows you to create a new project structure for any framework or library for which the tool has a template.

If you want more information about lazybones project check it out here and here

1.4 Create Java projects directory

Open the terminal and execute the commands below:

mkdir -p $HOME/Projects/Java

1.5 Cloning java-templates repository

Open the terminal and execute the commands below:

cd $HOME/Projects/Java
git clone https://github.com/CIDAC/java-templates.git

1.6 Installing the templates

Open the terminal and execute the commands below:

cd $HOME/Projects/Java/java-templates
./gradlew installAllTemplates

To see if the templates were installed:

lazybones list --cache

1.7 Configuring Microsoft Visual Studio Code (VS Code)

If you want to use Microsoft Visual Studio Code (VS Code) follow the instructions bellow to configure the Editor.

Create a file called settings.json and add the following properties:

{
    "explorer.confirmDelete": false,
    "editor.tabSize": 2,
    "editor.tabCompletion": true,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 5000,
    "editor.renderWhitespace": "all"
}

You could also use the following plugins:

2. Creating project by template

Our template will generate a Spring boot Java project configured with:

- Gradle
- Spring Boot
- Spring Data JPA
- Logback
- Docker
- FlywayDB
- PostgreSQL connection database
- Guava
- Spring Actuator
- Swagger

2.1 Creating a Spring Boot Web project

To create a spring-boot-web project follow the instructions of this link.

About

java lazybones templates used in cidac

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published