Giter VIP home page Giter VIP logo

java-templates's Introduction

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.

java-templates's People

Contributors

wallacegsouza avatar

Watchers

James Cloos avatar Matheus Cruz de Souza 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.