Giter Club home page Giter Club logo

stimulus-controllers's Introduction

Astro Starter Kit: Minimal

npm init astro -- --template minimal

Open in StackBlitz

๐Ÿง‘โ€๐Ÿš€ Seasoned astronaut? Delete this file. Have fun!

๐Ÿš€ Project Structure

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

/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ 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/

๐Ÿ‘€ Want to learn more?

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

stimulus-controllers's People

Contributors

gregkohn avatar

Stargazers

Nathan Long avatar Joshua Pease avatar

Watchers

Elliott Muรฑoz avatar Dylan Lederle-Ensign avatar James Cloos avatar Paul Koch avatar Brian Williams avatar Aakash Tandel  avatar Claire Atwell avatar Peyton Chance avatar  avatar

Forkers

isabella232

stimulus-controllers's Issues

Video Player Controllers

It would be tight to have a unified "video" controller that works with popular 3rd party players like Youtube & Vimeo.

A few key features that you don't get out of the box when you roll your own video player.

  • Lazy load the Iframe & related JS library as needed (could even wait until scroll into view or if the element is actually visible).
  • Unified controller actions & config between Vimeo & Youtube videos.
    • i.e. (play, pause, autoplay, etc)
  • Automatic detection & parsing of YouTube / Vimeo Videos
    • Use a URL as a config value and the appropriate <iframe> markup is created.

Move to Netlify?

I've deployed some other Astro things to Netlify with much more ease, but I didn't want to tie that into my account at this point. I was trying to force Github Pages bc of the http://code.viget.com domain but... it's a headache. I've merged some stuff that could removed if we go with a different host, more on that stuff here #5 (comment)

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.