🚥 Create Astro App

What we will use:

  • Node.js (latest long-term support version)
  • Visual Studio Code editor
  • Astro extension for Visual Studio Code

Create an Astro boilerplate app

  1. Check the active Node.js version
Terminal window
node -v
  1. Create an Astro app
Terminal window
npm create astro@latest
  1. Follow the setup prompts:
    • Specify the project folder.
    • Yes, include sample files.
    • No, do not include TypeScript (for faster development; I would use TypeScript for a production project).
    • Yes, install dependencies.
    • Yes, initialize a new git repository.
  2. cd into your project directory.
  3. Run the development server
Terminal window
npm run dev
  1. Ctrl-click the link shown, and you should see the Astro starter website.

Questions? Let's chat

© 2019 - 2024 — Made in 🇬🇧 — Need Help? Contact [email protected]