Giter VIP home page Giter VIP logo

mattjstride / astro-snipcart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lloydjatkinson/astro-snipcart

0.0 0.0 0.0 37.25 MB

Allows for the creation of E-Commerce sites using the Astro framework and Snipcart. Start your e-commerce business in minutes!

Home Page: https://astro-snipcart.vercel.app

License: MIT License

JavaScript 5.75% TypeScript 14.59% CSS 3.92% Dockerfile 1.11% Astro 74.64%

astro-snipcart's Introduction

Welcome to astro-snipcart ๐Ÿ‘‹

Version Documentation License: MIT Twitter: lloydjatkinson

Astro Snipcart allows developers to rapidly build E-Commerce sites using the Astro framework and the Snipcart platform. Create an e-commerce site with just a few lines of HTML and Astro components!

This Astro integration contains all of the features that you need to build an e-commerce site with Snipcart, including:

  • โœ… Automatic installation of the Snipcart library
  • โœ… Zero JavaScript by default (apart from Snipcart)
  • โœ… Astro components to define products
  • โœ… Astro components for features such as displaying basket and total price
  • โœ… TypeScript based product definitions surfaced as Astro component props
  • โœ… An optional small design system providing common e-commerce components
  • ๐Ÿ”œ Not just products, but subscription support also!

๐Ÿ  Homepage

โœจ Demo

Install Astro Snipcart

This provides you with a set of Astro components that allow you to define your products and enables checkout. They do not have any visual aspects, do not imply any sort of theme, and are up to you to work with. These are how your application and Snipcart interact.

npm install @lloydjatkinson/astro-snipcart

(Optional) Install Astro Snipcart Design System

This builds upon (and depends upon Astro Snipcart) and provides an optional E-Commerce orientated design system which you can use all or parts of as the foundation for your E-Commerce site. In fact, you can build real-world sites as shown in this playground demo.

npm install @lloydjatkinson/astro-snipcart-design-system

You'll then need to follow the steps to setup Tailwind and the design system as per the Astro Snipcart documentation

Here's a brief example of what you can do with the design system:

<Stack
    gap={{
        mobile: 'small',
        desktop: 'large'
    }}>
    <Text
        as="h1"
        size="xlarge"
        weight="strong"
        tracking="tighter">
        I'm some styled text!
    </Text>
    <Price
        currency="GBP"
        price={ 10 }
        originalPrice={ 12 }
        size="large" />
</Stack>

Astro Snipcart

Which can be built up into real-world site designs:

Astro Snipcart

Development and build

This project is a monoepo. Additionally, it uses pnpm as it's package manager. The packages directory is where the source is contained.

Install

pnpm -r i

Usage

pnpm run docs
pnpm run playground

Format & Lint

pnpm -r format
pnpm -r lint

Run tests

pnpm -r test

Author

๐Ÿ‘ค Lloyd Atkinson

Show your support

Give a โญ๏ธ if this project helped you!

astro-snipcart's People

Contributors

lloydjatkinson avatar mattjstride avatar

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.