gioboa / qwik-dream-demo

https://qwik-dream-demo.pages.dev/
28 stars 11 forks source link

Readme with basic dev instructions? #19

Closed michaelbromley closed 2 years ago

michaelbromley commented 2 years ago

Hi guys,

I had a bit of time tonight and wanted to poke around this repo and think about how we could do #13. Unfortunately I'm stuck trying to get the local dev version working. It would be great to have a simple readme with "getting started" steps.

Here's what I did so far:

  1. cloned this repo
  2. npm i in root dir
  3. cd apps/product && npm i since that app has 1 dependency that needs installing
  4. Run npm start, which seems to be the right one for local dev?

Here's the output I get

``` ❯ npm start npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. > qwik-dream-demo@1.0.0 start > run-p preview:apps start:host > qwik-dream-demo@1.0.0 start:host > nx start host > qwik-dream-demo@1.0.0 preview:apps > run-p preview:menu preview:hero preview:product preview:reviews preview:cart > nx run host:start > qwik-dream-demo@1.0.0 preview:cart > nx preview cart > qwik-dream-demo@1.0.0 preview:reviews > nx preview reviews > qwik-dream-demo@1.0.0 preview:menu > nx preview menu > qwik-dream-demo@1.0.0 preview:hero > nx preview hero > qwik-dream-demo@1.0.0 preview:product > nx preview product npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. > nx run menu:preview > nx run hero:preview > nx run cart:preview > nx run reviews:preview > nx run product:preview > start > vite --open --mode ssr npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. VITE v3.1.4 ready in 1290 ms ➜ Local: http://127.0.0.1:5173/ ➜ Network: use --host to expose > preview > qwik build preview && vite preview > preview > qwik build preview && vite preview > preview > qwik build preview && vite preview > preview > qwik build preview && vite preview > preview > qwik build preview && vite preview --port 5005 vite build vite build --ssr src/entry.preview.tsx vite build vite build --ssr src/entry.preview.tsx vite build vite build --ssr src/entry.preview.tsx vite build vite build --ssr src/entry.preview.tsx vite build vite build --ssr src/entry.preview.tsx vite v3.1.4 building for production... vite v3.1.4 building for production... transforming... vite v3.1.4 building for production... transforming... vite v3.1.4 building for production... transforming... transforming... vite v3.1.4 building for production... transforming... 21:40:34 [vite] Internal server error: request to http://localhost:5005/cart/ failed, reason: connect ECONNREFUSED 127.0.0.1:5005 at ClientRequest. (file:///C:/Development/github-forks/qwik-dream-demo/node_modules/@builder.io/qwik-city/vite/index.mjs:28207:14) at ClientRequest.emit (node:events:527:28) at Socket.socketErrorListener (node:_http_client:454:9) at Socket.emit (node:events:527:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) ✓ 26 modules transformed. ✓ 24 modules transformed. rendering chunks... rendering chunks... ✓ 38 modules transformed. dist/q-manifest.json 5.88 KiB dist/build/q-70e6d55c.js 0.06 KiB / gzip: 0.07 KiB dist/build/q-2128b99c.js 0.43 KiB / gzip: 0.24 KiB dist/build/q-19b7b08a.js 12.87 KiB / gzip: 4.97 KiB dist/build/q-ee5e18a0.js 0.18 KiB / gzip: 0.15 KiB dist/build/q-8c2f86a7.js 0.21 KiB / gzip: 0.17 KiB dist/build/q-c4c6f451.js 0.11 KiB / gzip: 0.11 KiB dist/build/q-f5eae0a2.js 0.13 KiB / gzip: 0.13 KiB dist/build/q-b1d44a7d.js 0.46 KiB / gzip: 0.31 KiB dist/hero/service-worker.js 2.48 KiB / gzip: 1.18 KiB dist/build/q-30088ce1.js 3.25 KiB / gzip: 1.33 KiB dist/build/q-2fa6c38c.js 37.69 KiB / gzip: 15.07 KiB ✓ 23 modules transformed. dist/q-manifest.json 5.13 KiB dist/build/q-6c32a4ec.js 0.06 KiB / gzip: 0.07 KiB dist/build/q-22f23762.js 11.97 KiB / gzip: 4.69 KiB dist/build/q-a765a1eb.js 0.43 KiB / gzip: 0.24 KiB dist/build/q-00411615.js 0.18 KiB / gzip: 0.15 KiB dist/build/q-4fddf708.js 0.21 KiB / gzip: 0.17 KiB dist/build/q-91dd7eda.js 0.13 KiB / gzip: 0.13 KiB dist/build/q-1e5c72aa.js 0.11 KiB / gzip: 0.11 KiB dist/menu/service-worker.js 2.48 KiB / gzip: 1.18 KiB dist/build/q-bee256bd.js 1.24 KiB / gzip: 0.76 KiB dist/build/q-6b0760dc.js 1.95 KiB / gzip: 1.03 KiB dist/build/q-01fcd21f.js 38.18 KiB / gzip: 15.24 KiB ✓ Built client modules ✓ Built client modules rendering chunks... rendering chunks... dist/q-manifest.json 8.26 KiB dist/build/q-2579fd3e.js 0.06 KiB / gzip: 0.07 KiB dist/build/q-0f431d51.js 0.43 KiB / gzip: 0.25 KiB dist/build/q-111f843a.js 0.18 KiB / gzip: 0.15 KiB dist/build/q-fa252245.js 0.19 KiB / gzip: 0.16 KiB dist/build/q-385b0573.js 0.11 KiB / gzip: 0.11 KiB dist/build/q-ded2052b.js 0.11 KiB / gzip: 0.12 KiB dist/build/q-29d9162e.js 13.02 KiB / gzip: 4.94 KiB dist/build/q-51e6fe57.js 3.15 KiB / gzip: 1.30 KiB dist/cart/service-worker.js 2.48 KiB / gzip: 1.18 KiB dist/build/q-f282a808.js 1.21 KiB / gzip: 0.59 KiB dist/build/q-7504517e.js 0.18 KiB / gzip: 0.17 KiB dist/build/q-4313dc44.js 36.92 KiB / gzip: 14.79 KiB dist/build/q-f26035d2.js 0.28 KiB / gzip: 0.23 KiB dist/build/q-6b33d974.js 0.33 KiB / gzip: 0.27 KiB dist/build/q-40975955.js 0.41 KiB / gzip: 0.25 KiB ✓ 48 modules transformed. ✓ Built client modules dist/q-manifest.json 4.73 KiB dist/build/q-4409514a.js 0.06 KiB / gzip: 0.07 KiB dist/build/q-ef589ae7.js 0.44 KiB / gzip: 0.25 KiB dist/build/q-01b7b8ba.js 11.96 KiB / gzip: 4.64 KiB dist/build/q-28cf0193.js 0.18 KiB / gzip: 0.15 KiB dist/build/q-8079713f.js 0.21 KiB / gzip: 0.17 KiB dist/build/q-72d42d9e.js 0.13 KiB / gzip: 0.13 KiB dist/build/q-20d741f6.js 0.11 KiB / gzip: 0.11 KiB dist/build/q-e334e476.js 1.87 KiB / gzip: 0.77 KiB dist/reviews/service-worker.js 2.48 KiB / gzip: 1.18 KiB dist/build/q-6b1f04fd.js 0.70 KiB / gzip: 0.44 KiB dist/build/q-df6e4745.js 37.62 KiB / gzip: 15.03 KiB ✓ Built client modules rendering chunks... dist/q-manifest.json 10.63 KiB dist/build/q-914ef77b.js 0.06 KiB / gzip: 0.07 KiB dist/build/q-38cdd5ca.js 0.44 KiB / gzip: 0.25 KiB dist/build/q-47379e62.js 0.18 KiB / gzip: 0.15 KiB dist/build/q-e822023b.js 0.21 KiB / gzip: 0.17 KiB dist/build/q-2cc85344.js 0.11 KiB / gzip: 0.11 KiB dist/build/q-6cb2751c.js 0.13 KiB / gzip: 0.13 KiB dist/build/q-b9a85f27.js 20.65 KiB / gzip: 6.42 KiB dist/build/q-42c342f7.js 0.46 KiB / gzip: 0.31 KiB dist/product/service-worker.js 2.48 KiB / gzip: 1.18 KiB dist/build/q-d764029a.js 38.18 KiB / gzip: 15.24 KiB dist/build/q-2373aad6.js 4.84 KiB / gzip: 1.93 KiB dist/build/q-fb325d6d.js 0.88 KiB / gzip: 0.45 KiB dist/build/q-52ff9eef.js 0.28 KiB / gzip: 0.24 KiB dist/build/q-ff73ce23.js 0.40 KiB / gzip: 0.29 KiB dist/build/q-1e49a580.js 0.48 KiB / gzip: 0.30 KiB dist/build/q-eb4f7585.js 0.45 KiB / gzip: 0.30 KiB dist/build/q-93c9d8cc.js 0.40 KiB / gzip: 0.28 KiB dist/build/q-4a9aaf58.js 0.27 KiB / gzip: 0.25 KiB ✓ Built client modules ✓ Built preview (ssr) modules ✓ Built preview (ssr) modules ✓ Built preview (ssr) modules ✓ Built preview (ssr) modules ✓ Built preview (ssr) modules ➜ Local: http://localhost:4173/menu/ ➜ Network: http://100.69.212.25:4173/menu/ ➜ Network: http://172.21.160.1:4173/menu/ ➜ Network: http://192.168.8.125:4173/menu/ Port 4173 is in use, trying another one... Port 4173 is in use, trying another one... Port 4174 is in use, trying another one... ➜ Local: http://localhost:4174/hero/ ➜ Network: http://100.69.212.25:4174/hero/ ➜ Network: http://172.21.160.1:4174/hero/ ➜ Network: http://192.168.8.125:4174/hero/ ➜ Local: http://localhost:4175/reviews/ ➜ Network: http://100.69.212.25:4175/reviews/ ➜ Network: http://172.21.160.1:4175/reviews/ ➜ Network: http://192.168.8.125:4175/reviews/ ➜ Local: http://localhost:5005/cart/ ➜ Network: http://100.69.212.25:5005/cart/ ➜ Network: http://172.21.160.1:5005/cart/ ➜ Network: http://192.168.8.125:5005/cart/ Port 4173 is in use, trying another one... Port 4174 is in use, trying another one... Port 4175 is in use, trying another one... ➜ Local: http://localhost:4176/product/ ➜ Network: http://100.69.212.25:4176/product/ ➜ Network: http://172.21.160.1:4176/product/ ➜ Network: http://192.168.8.125:4176/product/ ```
gioboa commented 2 years ago

@michaelbromley you are right, the project is a bit messy now 😔 I will write the steps to startup the project locally