Skip to content

Commit

Permalink
Constructing deployment jar Phase 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dws4 committed Jul 16, 2024
1 parent f513c11 commit ec70fb5
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 1 deletion.
70 changes: 70 additions & 0 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<url>https://github.com/NationalSecurityAgency/datawave-dictionary-service</url>
</scm>
<properties>
<node.npmRegistryUrl>https://registry.npmjs.org/</node.npmRegistryUrl>
<node.version>v18.0.0</node.version>
<start-class>datawave.microservice.dictionary.DictionaryService</start-class>
<version.accumulo>2.1.1</version.accumulo>
<version.curator>5.2.0</version.curator>
Expand Down Expand Up @@ -232,9 +234,77 @@
</repositories>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.12.1</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm config set registry</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>config set registry=${node.npmRegistryUrl}</arguments>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
<configuration>
<workingDirectory>src/main/frontend</workingDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy frontend content</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/classes/static</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>src/main/frontend/dist/spa</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down
1 change: 1 addition & 0 deletions service/src/main/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.thumbs.db
node
node_modules

# Quasar core related directories
Expand Down
Binary file added service/src/main/frontend/public/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion service/src/main/frontend/quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ module.exports = configure(function (/* ctx */) {
// polyfillModulePreload: true,
// distDir

// extendViteConf (viteConf) {},
extendViteConf(viteConf, { isServer, isClient }) {
viteConf.base = "";
},
// viteVuePluginOptions: {},

vitePlugins: [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package datawave.microservice.dictionary;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import com.codahale.metrics.annotation.Timed;

@Controller
public class SPAController {
@GetMapping("/data/v2")
@Timed(name = "dw.dictionary.data.get", absolute = true)
public String v2PathDictionary() {
return "index.html";
}
}

0 comments on commit ec70fb5

Please sign in to comment.