Back to Qwik

Introducing Qwik starters - get up and running with Qwik now

packages/docs/src/routes/(blog)/blog/(articles)/introducing-qwik-starters/index.mdx

1.7.13.6 KB
Original Source

import { ArticleBlock } from '/routes/(blog)/blog/components/mdx/article-block'; import CodeSandbox from '/components/code-sandbox/index.tsx';

<ArticleBlock>

Nothing is more satisfying than playing with code and discovering new things! Yes, it is finally here, npm init qwik for you to try and discover a different way to build web apps that stay lean and performant no matter their size. It is the same technology that is powering builder.io and gets 100/100 PageSpeed.

Qwik starter CLI is a simple starter for you to try experimenting with Qwik first hand and to get a better understanding of just how different it is.

The CLI consist of these four examples, that will be expanded in the near future:

  1. starter: A basic hello world.
  2. starter-builder: A basic hello world integrated with Builder's Qwik API.
  3. starter-partytown: A basic hello world showing how expensive tasks can be run on web-worker with Partytown
  4. todo: A classic TodoMVC application.

Basic Starter

shell
> npm init qwik
šŸ’« Let's create a Qwik project šŸ’«

āœ” Project name … qwik-starter
āœ” Select a starter › Starter
āœ” Select a server › Express

ā­ļø Success! Project saved in qwik-starter directory

šŸ“Ÿ Next steps:
  cd qwik-starter
  npm install
  npm start

> (cd qwik-starter; npm install; npm start)

Try it in StackBlitz.

Starter with Builder Qwik API

shell
> npm init qwik
šŸ’« Let's create a Qwik project šŸ’«

āœ” Project name … qwik-builder
āœ” Select a starter › Starter Builder
āœ” Select a server › Express

ā­ļø Success! Project saved in qwik-builder directory

šŸ“Ÿ Next steps:
  cd qwik-builder
  npm install
  npm start

> (cd qwik-builder; npm install; npm start)

Try it in StackBlitz.

Starter with Partytown

shell
> npm init qwik
šŸ’« Let's create a Qwik project šŸ’«

āœ” Project name … qwik-partytown
āœ” Select a starter › Starter Partytown
āœ” Select a server › Express

ā­ļø Success! Project saved in qwik-partytown directory

šŸ“Ÿ Next steps:
  cd qwik-partytown
  npm install
  npm start

> (cd qwik-partytown; npm install; npm start)

Classic TodoMVC

shell
> npm init qwik
šŸ’« Let's create a Qwik project šŸ’«

āœ” Project name … qwik-todo
āœ” Select a starter › Todo
āœ” Select a server › Express

ā­ļø Success! Project saved in qwik-todo directory

šŸ“Ÿ Next steps:
  cd qwik-todo
  npm install
  npm start

> (cd qwik-todo; npm install; npm start)

Try it in StackBlitz.

Profile away

We encourage you to open the dev tools and put all of the examples through the profiler to see how little time is spent on the main thread.

Happy coding and please provide feedback šŸš€

</ArticleBlock>