This page lists the elements that you'll need to install on your computer to do web development.


Java and Netbeans

Vous aurez besoin d'un SDK Java (JDK).

Les démos et le code donné utilisera Netbeans. Pour installer le bon Netbeans, il faut prendre la version « Java EE » (or « all ») la plus récente, téléchargeable sur le site de netbeans.

Nous allons utiliser « maven » (une version vient avec Netbeans) qui va télécharger pas mal de choses. Vous devez donc créer et compiler un projet pour pré-télécharger tout celà (voir ci dessous).

Créer un projet Spring avec netbeans

Dans Netbeans, aller dans « Tools>Plugins » puis dans l'onglet « Available plugins » entrez « spring » dans le champs « Search ». Cocher les différents plugins qui apparaissent (en particulier « NB SpringBoot » et « Spring Web MVC »). S'ils sont déjà installés, ils apparaissent dans l'onglet « Installed ».

Après avoir installé ces plugins, créez un projet et compiler le, en suivant les étapes suivantes :

Félicitation, une bonne partie des choses à télécharger l'ont été, vous pouvez stopper le server (carré rouge) et supprimer votre projet :).

Choses en plus

Autocompletion Thymeleaf : https://github.com/ArturWisniewski/NB-Thymeleaf-Code-Completion/releases (puis installer via netbeans)

Fichier HTML « minimal » avec déclaration du namespace Thymeleaf :

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>???</title>
        <meta charset="UTF-8"/>
    </head>
    <body>
        <div>TODO write content</div>
    </body>
</html>

Git

You will be asked to use the git version control system.

Please follow the installation instructions on https://git-scm.com/book/en/v2/Getting-Started-Installing-Git.


Simple text editor

You can use Netbeans, emacs, or any text editor you like (including eclipse). You can also try this one https://atom.io/ (and optionally disable the "metrics" package).


If you prefer Eclipse: Eclipse Spring Tool Suite

We'll be using Spring for server side development. The easiest way to start with Spring is to use the Eclipse STS distribution, that can be downloaded at https://spring.io/tools/sts/all.