Skip to content
Snippets Groups Projects
Commit d5a51d5a authored by Alexandre Vandekerkhove's avatar Alexandre Vandekerkhove
Browse files

Initial commit

parent 1448d5a1
Branches main
No related tags found
No related merge requests found
......@@ -25,3 +25,6 @@ Produis le code comme si tu le faisais "en vrai", sauf qu'on se concentre sur le
### Que faire si j'ai oublié la syntaxe ?
Pour information, tu as le droit d'utiliser tous les outils que tu veux : Javadoc, Documentation en ligne, StackOverflow, Google... fais en bon usage.
## Prérequis
Java 11 et Maven.
kanban.jpg

38.2 KiB

pom.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>fr.lille.ippon.recrutement</groupId>
<artifactId>kanban-java-spring</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>kanban-java-spring</name>
<description>Exercice d'implementation d'un kanban</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package fr.lille.ippon.challenge.kanban;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class KanbanApplication {
public static void main(String[] args) {
SpringApplication.run(KanbanApplication.class, args);
}
}
package fr.lille.ippon.challenge.kanban.domain;
public class Task {
private String title;
public Task(String title) {
this.title = title;
}
public String getTitle() {
return title;
}
}
package fr.lille.ippon.challenge.kanban.http.api;
import java.util.List;
import fr.lille.ippon.challenge.kanban.domain.Task;
public class TaskController {
public List<Task> getTasks() {
// TODO faire fonctionner. Refactorer ?
return List.of(new Task("my first task"));
}
}
package fr.lille.ippon.challenge.kanban;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class KanbanApplicationTests {
@Test
void contextLoads() {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment