• Stars
    star
    252
  • Rank 155,913 (Top 4 %)
  • Language Astro
  • Created about 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

View Transitions API Demo

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!

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:3000
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.

More Repositories

1

bootbot

Facebook Messenger Bot Framework for Node.js
JavaScript
967
star
2

astro-blog-template

Personal Blog Template Powered by Astro
Astro
298
star
3

astro-movies

Movie DB App built with Astro
Astro
203
star
4

astro-records

Astro SPA Demo
TypeScript
188
star
5

sapper-blog-template

Markdown-based Blog Built with Sapper
CSS
179
star
6

cloudflare-pages-auth

Basic Authentication for Cloudflare Pages
TypeScript
174
star
7

reactjs-conf-2016

React.js Conf 2016 React Native App
JavaScript
133
star
8

astro-photo-gallery

Astro + View Transitions Photo Gallery Demo
TypeScript
86
star
9

astro-3d-view-transitions

Astro + View Transitions + React Three Fiber Demo
Astro
74
star
10

astro-view-transitions

Demo of Astro MPA using the View Transitions API
CSS
66
star
11

astro-music

Demo ssing Astro and the Shared Element Transition API
Astro
36
star
12

astro-blog-view-transitions

Astro Blog + View Transitions Demo
Astro
13
star
13

svelte-match3

Match 3 game with Svelte
Svelte
12
star
14

react-lab

React and Flux Training
12
star
15

astro-remove-bg

AI Background Removal app built with Astro + Replicate
Astro
11
star
16

astro-view-transitions-grid

Astro 3.0 + View Transitions Demo
Astro
10
star
17

gulp-arialinter

Gulp plugin for the accessibility tool AriaLinter
JavaScript
9
star
18

gulp-backbone

Boilerplate for Gulp + Backbone.js apps
JavaScript
7
star
19

pokenum

Guess the PokΓ©mon Game for Facebook Messenger
JavaScript
7
star
20

bootbot-cli

BootBot CLI
JavaScript
7
star
21

fake-stripe

Very raw prototype of a Docs Site with features inspired by Stripe Docs, powered by Astro and Starlight
Astro
7
star
22

astro-stable-diffusion

Demo of Astro + Stable Difussion using a Replicate API
Astro
6
star
23

open-prode

Prode Futbol Argentino built with Flux + React
JavaScript
5
star
24

netlify-functions-example

HTML
2
star
25

sveltekit-wordle

Wordle Clone Built with SvelteKit
TypeScript
1
star
26

react-flux-starter

Simple starter kit for webapps using React + Flux
JavaScript
1
star
27

laravel-starter

Laravel + React + Tailwind CSS Starter
PHP
1
star
28

flux

Example app using Flux + React
JavaScript
1
star
29

bookbone

A Backbone + Marionette SPA to find awesome books
JavaScript
1
star
30

nextjs-netlify

JavaScript
1
star
31

charca.dev

Home of https://charca.dev
CSS
1
star
32

talks

Decks and demos for talks I've given.
JavaScript
1
star
33

twimeline-reapp

Twitter client made with Reapp
1
star
34

svelte-beerjs

Deck and demos of Svelte BeerJS CBA Talk
JavaScript
1
star
35

pacamara-astro

Clone of pacamara-astro template
Astro
1
star