Configurações - PatriciaLocatelli/trabalho-pw2 GitHub Wiki

Spring Boot e Vue.js:

https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.2.2.RELEASE&packaging=jar&jvmVersion=1.8&groupId=edu.ifrs.poa&artifactId=example&name=example&description=Exemplo%20de%20API&packageName=edu.ifrs.poa.example&dependencies=web,data-jpa,h2

Configurações iniciais :

Se for usuário MacOSX:

brew install node npm install -g @vue/cli

Se for usuário Linux:

sudo apt update sudo apt install node npm install -g @vue/cli

Se for usuário Windows:

choco install npm npm install -g @vue/cli

Configurando o Back end:

Vá em https://start.spring.io/ e inicialize o Spring Boot. Adicione ao pom.xml:

  <plugins>
    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
    <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <executions>
        <execution>
          <id>copy Vue.js frontend content</id>
          <phase>generate-resources</phase>
          <goals>
            <goal>copy-resources</goal>
          </goals>
          <configuration>
            <outputDirectory>src/main/resources/public</outputDirectory>
            <overwrite>true</overwrite>
            <resources>
              <resource>
                <directory>${project.parent.basedir}/frontend/target/dist</directory>
                <includes>
                  <include>static/</include>
                  <include>index.html</include>
                  <include>favicon.ico</include>
                </includes>
              </resource>
            </resources>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>```

## Para o front-end execute o comando:
vue create frontend
⚠️ **GitHub.com Fallback** ⚠️