Astro Template

Welcome to the Astro Template, a lightweight and high-performance web development template powered by Astro.

πŸš€ Getting Started

To start a new project using this template, you can use the following command:

npm create astro@latest -- --template astro-template
		

πŸ“ Project Structure

Inside your Astro project, you'll find the following folders and files:


		/
		β”œβ”€β”€ public/
		β”‚   β”œβ”€β”€ favicon.ico
		β”‚   β”œβ”€β”€ robots.txt
		β”œβ”€β”€ src/
		β”‚   β”œβ”€β”€ layouts/
		β”‚ 	β”‚ β”œβ”€β”€ Layout.astro 
		β”‚ 	β”œβ”€β”€ pages/
		β”œβ”€β”€β”€β”œβ”€β”€β”€consts.ts
		└── package.json
	

Don't forget to update the base URL of your project by modifying the site value in astro.config.mjs to match your project's URL.

Feel free to adapt and organize your project's structure as needed. You can also create folders like src/assets/, src/components/, src/content/ to better align with your project's goals and content management needs.

✨ Features

Key Features

Additional Features

With these features, you can build high-performance websites with ease and efficiency, ensuring a seamless user experience and strong SEO presence.

🧞 Commands

Here are some useful commands for managing your Astro project:

CommandAction
npm installInstall project dependencies
npm run devStart the local development server
npm run buildBuild your project for production
npm run previewPreview your build locally before deploying
npm run astro ...Run Astro CLI commands like astro add, astro check
npm run astro -- --helpGet help with the Astro CLI

πŸ“š Documentation

For detailed documentation and further information, visit the Astro Documentation.

If you have questions or need assistance, join our community on Discord.

Happy coding with Astro Template!