Git Product home page Git Product logo

Astro Starter Kit: Basics

npm create astro@latest -- --template basics

Open in StackBlitz Open with CodeSandbox Open in GitHub Codespaces

🧑‍🚀 Seasoned astronaut? Delete this file. Have fun!

just-the-basics

🚀 Project Structure

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

/
├── public/
│   └── favicon.svg
├── src/
│   ├── components/
│   │   └── Card.astro
│   ├── layouts/
│   │   └── Layout.astro
│   └── pages/
│       └── index.astro
└── 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.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

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

👀 Want to learn more?

Feel free to check our documentation or jump into our Discord server.

ATAO's Projects

awesome icon awesome

😎 Awesome lists about all kinds of interesting topics

awesome-go icon awesome-go

A curated list of awesome Go frameworks, libraries and software

awesome-java icon awesome-java

A curated list of awesome frameworks, libraries and software for the Java programming language.

book-search-engine-back icon book-search-engine-back

图书搜索引擎服务后端服务,实现了前缀搜索、搜索纠错、模糊搜索、搜索分页、高亮显示、搜索推荐等功能

book-search-engine-data icon book-search-engine-data

图书搜索引擎python数据处理端,主要任务是从指定的站点爬取书籍信息,然后对数据进行清洗过滤

campus-community icon campus-community

亦在为在校大学生提供分享、交流校园趣事而搭建的校园交流平台,实现了发帖、评论、私信、通知、 搜索、权限、统计等功能。

cdn-up-and-running icon cdn-up-and-running

CDN Up and Running - Building a CDN from Scratch to Learn about CDN, Nginx, Lua, Prometheus, Grafana, Load balancing, and Containers.

chatgpt-next-web icon chatgpt-next-web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。

checkstyle icon checkstyle

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

conductor icon conductor

Conductor is an event driven orchestration platform

developer-roadmap icon developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

dubbo icon dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.

hellogithub icon hellogithub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

iampavangandhi icon iampavangandhi

Hey 👋, Glad to see you here! Check out this repository to learn more about me 🤓. You can also use it to make your awesome GitHub README ✨ (Don't Just Fork, Star Too 😅)

mini-farm-server icon mini-farm-server

Mini-Farm-Server是一款互联网面向C端人群的扶农助农小程序的服务端

mini-farm-wechat icon mini-farm-wechat

Mini-Farm-WeChat是一款互联网面向C端人群的扶农助农微信小程序

mini-spring icon mini-spring

一个简易版的Spring框架实现,以此来实践Spring源码的学习成果...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.