npm install
# or
yarn install
# or (recommended)
pnpm installnpm run dev
# or
yarn dev
# or (recommended)
pnpm devnpm run preview
npm run build
# or
yarn preview
yarn build
# or (recommended)
pnpm preview
pnpm buildWe recommend using pnpm to save disk space on your computer.
pnpm astro ...
pnpm astro add
pnpm astro --helpInside of your Astro project, you'll see the following folders and files:
/
├── public/
│ └── ...
├── src/
│ ├── components/
│ │ └── ...
│ ├── layouts/
│ │ └── ...
│ └── pages/
│ └── ...
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
Any static assets, like images, can be placed in the public/ directory.
TailwindCSS is already configured in this repo, so you can start using it without any installation.