Skip to content

Initialisieren Sie eine neue Qwik-App mit bunx create-qwik.

Das create-qwik-Paket erkennt, wenn Sie bunx verwenden, und installiert Abhängigkeiten automatisch mit bun.

sh
bun create qwik
txt
      ............
    .::: :--------:.
   .::::  .:-------:.
  .:::::.   .:-------.
  ::::::.     .:------.
 ::::::.        :-----:
 ::::::.       .:-----.
  :::::::.     .-----.
   ::::::::..   ---:.
    .:::::::::. :-:.
     ..::::::::::::
             ...::::


┌  Let's create a  Qwik App  ✨ (v1.2.10)

◇  Where would you like to create your new project? (Use '.' or './' for current directory)
│  ./my-app

●  Creating new project in  /path/to/my-app  ... 🐇

◇  Select a starter
│  Basic App

◇  Would you like to install bun dependencies?
│  Yes

◇  Initialize a new git repository?
│  No

◇  Finishing the install. Wanna hear a joke?
│  Yes

○  ────────────────────────────────────────────────────────╮
│                                                          │
│  How do you know if there's an elephant under your bed?  │
│  Your head hits the ceiling!                             │
│                                                          │
├──────────────────────────────────────────────────────────╯

◇  App Created 🐰

◇  Installed bun dependencies 📋

○  Result ─────────────────────────────────────────────╮
│                                                      │
│  Success!  Project created in my-app directory       │
│                                                      │
│  Integrations? Add Netlify, Cloudflare, Tailwind...  │
│  bun qwik add                                        │
│                                                      │
│  Relevant docs:                                      │
│  https://qwik.dev/docs/getting-started/              │
│                                                      │
│  Questions? Start the conversation at:               │
│  https://qwik.dev/chat                               │
│  https://twitter.com/QwikDev                         │
│                                                      │
│  Presentations, Podcasts and Videos:                 │
│  https://qwik.dev/media/                             │
│                                                      │
│  Next steps:                                         │
│  cd my-app                                           │
│  bun start                                           │
│                                                      │
│                                                      │
├──────────────────────────────────────────────────────╯

└  Happy coding! 🎉

Führen Sie bun run dev aus, um den Entwicklungsserver zu starten.

sh
bun run dev
txt
$ vite--mode ssr

VITE v4.4.7  ready in 1190 ms

➜  Local:   http://localhost:5173/
➜  Network: use --host to expose
➜  press h to show help

Öffnen Sie http://localhost:5173 mit Ihrem Browser, um das Ergebnis zu sehen. Qwik wird Ihre App hot-reloaden, während Sie Ihre Quelldateien bearbeiten.


Lesen Sie die Qwik-Dokumentation für vollständige Dokumentation.

Bun von www.bunjs.com.cn bearbeitet