dannyfranca / qwik-router

A SPA-like router for Qwik.
MIT License
19 stars 1 forks source link

[✨ Demo of how to use qwik-router in an nx qwik app with microfrontend - ie with host and remotes] #13

Open st-clair-clarke opened 3 weeks ago

st-clair-clarke commented 3 weeks ago

Is your feature request related to a problem?

Yes. I cannot find a way to incorporate the qwik-router into my Nx monorepo microfrontend app.

Describe the solution you'd like

Either

  1. Clear instruction on how to use qwik-router with an nx monorepo with microfrontend and incorporation or
  2. A vscode plugin to generate 1.

Describe alternatives you've considered

I have tried to use qwik-router in my nx monorepo with microfrontend but have not been successfule. Attached is a small scaffolding of such an app. To start the app, do the following:

  1. Decompress into a folder.
  2. Ensure the current pnpm package manager is installed.
  3. Run pnpm install
  4. pnpm nx serve medsoft --devRemotes=register
  5. Open app in browser at http://localhost:5173/ (host)

HELP NEEDED FOR THE FOLLOWING

  1. Router links in host (medsoft) to open the remote (registration)
  2. Working demo after the above fix.
  3. You can post back the updated result for me to download

Thanks

biz.medsoft.zip

Additional context

No response

dannyfranca commented 2 weeks ago

Could you create a repo that reproduce the issue and share the link here rather than a zip file?

st-clair-clarke commented 2 weeks ago

Thanks for replying. The link for the repo is qwik-router-demo