Skip to content

Povide build instructions #1

@roopeshsn

Description

@roopeshsn

Can you provide instructions to build frontend and backend?

roopesh@debian:~/Desktop/cam/ipcmanview$ make run
go run ./cmd/ipcmanview serve
go: downloading github.com/alecthomas/kong v0.9.0
go: downloading github.com/rs/zerolog v1.32.0
go: downloading github.com/joho/godotenv v1.5.1
...
go: downloading golang.org/x/exp v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading github.com/rivo/uniseg v0.4.4
internal/rpcserver/admin.go:15:2: no required module provides package github.com/ItsNotGoodName/ipcmanview/rpc; to add it:
        go get github.com/ItsNotGoodName/ipcmanview/rpc
internal/web/web.go:16:12: pattern all:dist: no matching files found
make: *** [Makefile:31: run] Error 1

I can build the frontend, but not able to run. Seems some files are missing. Are they need to be generated?

roopesh@debian:~/Desktop/cam/ipcmanview$ make dev-web
cd internal/web && npm install && npm run dev

added 299 packages, and audited 300 packages in 2m

56 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> web@0.0.0 dev
> vite --host


  VITE v5.4.20  ready in 403 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: http://192.168.1.9:5173/
  ➜  press h + enter to show help
10:43:54 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/rpc.client" from "src/providers/client.tsx". Does the file exist?
10:43:54 AM [vite] Pre-transform error: Failed to resolve import "~/lib/models.gen" from "src/providers/ws.tsx". Does the file exist?
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/lib/models.gen" from "src/providers/ws.tsx". Does the file exist? (x2)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist?
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x2)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x3)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x4)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x5)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x6)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x7)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x8)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x9)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist? (x10)
10:43:55 AM [vite] Internal server error: Failed to resolve import "~/lib/models.gen" from "src/providers/ws.tsx". Does the file exist?
  Plugin: vite:import-analysis
  File: /home/roopesh/Desktop/cam/ipcmanview/internal/web/src/providers/ws.tsx:9:44
  7  |  import { useBus } from "./bus";
  8  |  import { relativeWSURL } from "~/lib/utils";
  9  |  import { DahuaEvent, WSData, WSEvent } from "~/lib/models.gen";
     |                                               ^
  10 |  import { revalidate } from "@solidjs/router";
  11 |  import { getSession } from "./session";
      at TransformPluginContext._formatError (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:49258:41)
      at TransformPluginContext.error (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:49253:16)
      at normalizeUrl (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:64306:23)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:64438:39
      at async Promise.all (index 7)
      at async TransformPluginContext.transform (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:64365:7)
      at async PluginContainer.transform (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:49099:18)
      at async loadAndTransform (file:///home/roopesh/Desktop/cam/ipcmanview/internal/web/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:51977:27)
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/google/protobuf/timestamp" from "src/lib/utils.ts". Does the file exist?
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/rpc.client" from "src/providers/client.tsx". Does the file exist?
10:43:55 AM [vite] Pre-transform error: Failed to resolve import "~/twirp/rpc.client" from "src/providers/client.tsx". Does the file exist? (x2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions