Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semana11 - Willian C Bertini #47

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions html/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
body {
font-family: Arial, sans-serif; /* Define a fonte padrão do corpo da página */
margin: 0; /* Remove as margens padrão do corpo */
}

header {
background-color: #f0f0f5; /* Define a cor de fundo do cabeçalho */
padding: 20px 0; /* Adiciona espaçamento interno ao cabeçalho */
text-align: center; /* Centraliza o conteúdo do cabeçalho */
}

h1 {
color: #333; /* Define a cor do título principal */
}

nav ul {
list-style: none; /* Remove marcadores da lista de navegação */
padding: 0; /* Remove espaçamento interno da lista */
}

nav li {
display: inline; /* Exibe os itens do menu lado a lado */
margin: 0 10px; /* Adiciona margem entre os itens do menu */
}

nav a {
text-decoration: none; /* Remove sublinhado dos links */
color: #333; /* Define a cor dos links */
font-weight: bold; /* Define o peso da fonte dos links */
}

main {
padding: 20px; /* Adiciona espaçamento interno ao conteúdo principal */
}

h2 {
color: #333; /* Define a cor dos títulos do conteúdo principal */
}

footer {
background-color: #333; /* Define a cor de fundo do rodapé */
color: #fff; /* Define a cor do texto do rodapé */
text-align: center; /* Centraliza o conteúdo do rodapé */
padding: 10px 0; /* Adiciona espaçamento interno ao rodapé */
}
35 changes: 35 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comex - Sua Plataforma de Comércio Exterior</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>

<header>
<h1>Comex</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Produtos</a></li>
<li><a href="#">Categorias</a></li>
<li><a href="#">Clientes</a></li>
<li><a href="#">Relatórios</a></li>
</ul>
</nav>
</header>

<main>
<h2>Bem-vindo ao Comex!</h2>
<p>Sua solução completa para gerenciar as operações de comércio exterior da sua empresa.</p>
<p>Aqui você encontra uma diversidade de produtos, entre eles, eletrônicos, eletrodomesticos e utilidades em geral.</p>
</main>

<footer>
<p>© 2024 Comex. Todos os direitos reservados.</p>
</footer>

</body>
</html>
60 changes: 51 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>3.1.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<groupId>br.com.alura</groupId>
<artifactId>comex</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.3-SNAPSHOT</version>

<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<mysql.version>8.3.0</mysql.version>
</properties>

<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.6</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand All @@ -36,10 +40,48 @@
<version>2.13.1</version>
</dependency>
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>5.7.1</version>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>

<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.2.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.9.0</version>
</dependency>

<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>${mysql.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
</plugins>
</build>


</project>
14 changes: 14 additions & 0 deletions src/main/java/br/com/alura/comex/ComexApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package br.com.alura.comex;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ComexApplication {

public static void main(String[] args) {
SpringApplication.run(ComexApplication.class, args);
}

}

81 changes: 0 additions & 81 deletions src/main/java/br/com/alura/comex/Main.java

This file was deleted.

62 changes: 0 additions & 62 deletions src/main/java/br/com/alura/comex/Pedido.java

This file was deleted.

7 changes: 4 additions & 3 deletions src/main/java/br/com/alura/comex/ProcessadorDeCsv.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class ProcessadorDeCsv {

public static Pedido[] processaArquivo(String nomeDoArquivo) {
/* public static Pedido[] processaArquivo(String nomeDoArquivo) {
try {
URL recursoCSV = ClassLoader.getSystemResource(nomeDoArquivo);
Path caminhoDoArquivo = caminhoDoArquivo = Path.of(recursoCSV.toURI());
Expand Down Expand Up @@ -50,5 +50,6 @@ public static Pedido[] processaArquivo(String nomeDoArquivo) {
} catch (IOException e) {
throw new RuntimeException("Erro ao abrir Scanner para processar arquivo!");
}
}
}
} */
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package br.com.alura.comex.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BemVindoController {

@RequestMapping("/comex/bemvindo")
public String bemvindo(){
return "Bem vindo ao Comex, na Web!";
}

}
Loading