START-DB-2023 / ScrumTracker

0 stars 1 forks source link

Inicialização dos Repositórios e Configuração de Ambiente #2

Closed victorhfsilva closed 10 months ago

victorhfsilva commented 10 months ago

Inicialização do Front End

npm create vite@latest scrum-tracker-ui
cd scrum-tracker-ui
npm install

Importação do Styled Components

npm i styled-components
npm i @types/styled-components -D

Importação das ferramentas de Testes

npm install --save-dev jest
npm install i --save-dev @types/jest
npm install --save-dev @testing-library/react @testing-library/jest-dom

Inicialização do Back End

O projeto foi inicializado utilizando o Spring Initializr com o seguinte build.gradle:

plugins {
    id 'java'
    id 'org.springframework.boot' version '3.1.5'
    id 'io.spring.dependency-management' version '1.1.3'
}

group = 'com.db'
version = '0.0.1-SNAPSHOT'

java {
    sourceCompatibility = '17'
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-actuator'
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.springframework.boot:spring-boot-starter-security'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    developmentOnly 'org.springframework.boot:spring-boot-devtools'
    runtimeOnly 'org.postgresql:postgresql'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.security:spring-security-test'
}

tasks.named('test') {
    useJUnitPlatform()
}

O banco de dados PostgreSQL foi configurado através dos seguintes application.properties:

spring.datasource.url=jdbc:postgresql://localhost:5432/scrum-tracker
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.username=<username>
spring.datasource.password=<senha>

spring.jpa.hibernate.ddl-auto=update

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
logging.level.org.springframework.security=DEBUG
logging.level.org.springframework.data=DEBUG
logging.level.org.hibernate.SQL=DEBUG
spring.datasource.url=jdbc:postgresql://localhost:5432/scrum-tracker-test
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.username=postgres
spring.datasource.password=postgres

spring.jpa.hibernate.ddl-auto=update

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
logging.level.org.springframework.security=DEBUG
logging.level.org.springframework.data=DEBUG
logging.level.org.hibernate.SQL=DEBUG