Skip to content

Local setup with mock data#188

Open
MiloCasagrande wants to merge 2 commits into
mainfrom
feat/local-setup
Open

Local setup with mock data#188
MiloCasagrande wants to merge 2 commits into
mainfrom
feat/local-setup

Conversation

@MiloCasagrande

@MiloCasagrande MiloCasagrande commented Jun 26, 2026

Copy link
Copy Markdown
Member
  • feat: local dev setup with mock data
  • fix: add .local-data to .gitignore

@MiloCasagrande

Copy link
Copy Markdown
Member Author

This is a local dev setup with seeded data: I had AI go through the source code to provide "good" mock data so that one can spin up the server and use the UI without needing real devices or anything.

@MiloCasagrande MiloCasagrande requested a review from doanac June 26, 2026 12:17

@doanac doanac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the general idea. We have a "contrib/gen-certs.sh" but I think its different enough that we shouldn't bother trying to get it aligned with this new seed command.

Two things:

  1. @StealthyCoder - You are doing some hackery around seeding data for scale testing. Is there anything here that you could leverage or is what you are doing totally different?
  2. Can you squash the commits where appropritate? I think commits 1,2 and 4 of this are probably a single change?

Milo Casagrande added 2 commits June 26, 2026 16:49
Add dev-only path to run the server on localhost with a populated UI,
without real devices.

- cmd/seed: seeds N mock devices.
- contrib/run-local.sh: builds, generate a self-signed cert to satisfy
  the gateway, runs auth-init --test (noauth), seeds, then starts.
  --auth flag inits local auth and seeds an initial user
  (admin/admin, env-overridable via AUTH_USER/AUTH_PASS)
- docs/run-locally.md: command guide.

Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
@MiloCasagrande

Copy link
Copy Markdown
Member Author

@doanac commits squashed, history should have only 2 now.

Keep in mind this is really a quick setup for local development without bothering about devices etc..., mostly for having something to play around in the UI.

I'm interested in the seed data for the updates part, if @StealthyCoder has done it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants