Skip to content

Inizializza una nuova app Qwik con bunx create-qwik.

Il pacchetto create-qwik rileva quando stai usando bunx e installerà automaticamente le dipendenze usando 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! 🎉

Esegui bun run dev per avviare il server di sviluppo.

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

Apri http://localhost:5173 con il tuo browser per vedere il risultato. Qwik ricaricherà a caldo la tua app mentre modifichi i file sorgente.


Consulta la documentazione di Qwik per la documentazione completa.

Bun a cura di www.bunjs.com.cn