siguici / qwik-astro-deno

A template to get started with @QwikDev/astro and @denoland.

Home Page:https://qwik-astro.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@QwikDev/astro Starter Kit

Overview

Welcome to the @QwikDev/astro starter kit! This kit enables seamless integration of Qwik components into your Astro projects, combining the efficiency of Qwik's component-based architecture with the flexibility of Astro's static site generation.

πŸš€ Project Structure

Inside of your Qwik + Astro project, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ astro.svg
β”‚   β”‚   └── qwik.svg
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ counter.module.css
β”‚   β”‚   └── counter.tsx
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── index.astro
β”‚   └── styles/
β”‚       └── globals.css
└── package.json
  • public/ : This directory contains static resources such as images, accessible from the root of your deployed site.

  • src/ : This directory is the core of your Qwik + Astro application. Here's an overview of its structure:

    • assets/ : This directory is for resources such as images, SVG files, etc.

    • components/ : Qwik components are stored here. Use this directory to organize and create reusable components for your application.

    • layouts/ : Astro layouts reside in this directory. Layout files define the overall structure of your pages.

    • pages/ : This directory contains the pages of your Astro application. Each file with the .astro or .md extension is exposed as a route based on its file name.

    • styles/ : Global style files for your application are stored here, such as globals.css.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm start Starts local dev server at localhost:4321
pnpm build Build your production site to ./dist/
pnpm preview Preview your build locally, before deploying
pnpm astro ... Run CLI commands like astro add, astro check
pnpm astro -- --help Get help using the Astro CLI

πŸ“š References

About

A template to get started with @QwikDev/astro and @denoland.

https://qwik-astro.deno.dev


Languages

Language:Astro 68.8%Language:CSS 17.0%Language:TypeScript 14.2%