diff --git a/pkg/dashboard/dashboard.go b/pkg/dashboard/dashboard.go index fd38fd6..9f65296 100644 --- a/pkg/dashboard/dashboard.go +++ b/pkg/dashboard/dashboard.go @@ -20,9 +20,9 @@ type Dashboard struct { // New is a factory function creating a new Dashboard instance func New() *Dashboard { - const webRootDir = "./web/static" // Todo: needs to work in containerized environment - const webPort = "8001" // Todo: make configurable? - const apiPort = "8080" // Todo: make configurable? + const webRootDir = "./web/dist" // Todo: needs to work in containerized environment + const webPort = "8001" // Todo: make configurable? + const apiPort = "8080" // Todo: make configurable? return &Dashboard{ apiPort: apiPort, diff --git a/web/.env.development b/web/.env.development new file mode 100644 index 0000000..d8516b0 --- /dev/null +++ b/web/.env.development @@ -0,0 +1 @@ +VITE_API_URL="http://localhost:8080/v1/" \ No newline at end of file diff --git a/web/.env.production b/web/.env.production new file mode 100644 index 0000000..f23b4a2 --- /dev/null +++ b/web/.env.production @@ -0,0 +1 @@ +VITE_API_URL={{.ApiUrl}} \ No newline at end of file diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/web/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..8f48855 --- /dev/null +++ b/web/index.html @@ -0,0 +1,20 @@ + + + +
+ + + + + + + +{props.message}
+