Inside of your Astro project, you'll see the following folders and files:
/
├── public/
│ ├── favicon.svg
│ ├── images
│ │ ├── image.svg
│ │ ├── ...
│ │ ├── icons
│ │ │ ├── icon.svg
│ │ │ ├── ...
│ │ │ ...
│ │ ├── logo
│ │ │ ├── logo.svg
│ │ │ ├── ...
│ │ │ ...
│ │ ...
├── src
│ ├── components
│ │ ├── core
│ │ │ ├── Button.astro
│ │ │ ├── Label.astro
│ │ │ ├── ...
│ │ │ ...
│ │ ├── Header.astro
│ │ ├── Footer.astro
│ │ ├── Home.astro
│ │ ├── ...
│ │ ...
│ ├── layouts
│ │ ├── BaseLayout.astro
│ │ ├── ...
│ │ ...
│ ├── pages
│ │ ├── [lang]
│ │ │ ├── index.astro
│ │ │ ├── products.astro
│ │ │ ├── 404.astro
│ │ │ ├── ...
│ │ │ ...
│ │ ├── index.astro
│ │ ├── products.astro
│ │ ├── 404.astro
│ │ ├── ...
│ │ ...
│ ├── i18n
│ │ ├── locales
│ │ │ ├── en
│ │ │ │ ├── translations.json
│ │ │ │ ...
│ │ │ ├── es
│ │ │ │ ├── translations.json
│ │ │ │ ...
│ │ │ ├── fr
│ │ │ │ ├── translations.json
│ │ │ ├── ...
│ │ │ ...
│ │ ├── i18n.ts
│ │ ...
│ ...
├── astro.config.mjs
├── tsconfig.json
└── package.json
To learn more about the folder structure of an Astro project, refer to our guide on project structure.
Back to top
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Back to top
-
Prerequisite:
- Make sure Node and NPM are installed on your computer. You can download both at nodejs.org (NPM is included in your Node installation).
- Please see
.nvmrcfile at the root ofzigzagrepo containing the Node version. - Using nvm, a Node Version Manager is recommended as it helps you manage and switch between different Node versions with ease. It provides a command-line interface where you can install different versions with a single command, set a default, switch between them, etc. Here is NVM for Windows
-
In GitHub click on the repository nammed zigzag
-
Clone the repository locally. Run
git clone https://github.com/lucindasouchet/zigzag.git -
Install all modules listed as dependencies in package.json
cd zigzag npm install -
Runs the app in the development mode. Open http://localhost:4321/ to view it in the browser.
cd zigzag npm run dev
Back to top
=> live link: https://visionary-gumption-c97094.netlify.app/
Back to top