Code Monkey home page Code Monkey logo

dounut-astro's Introduction

AstroJS Boilerplate


This repository is what we call a "subtree split": a read-only copy of one directory of the main repository. If you want to report or contribute, you should do it on the main repository: https://github.com/CrystallizeAPI/boilerplates.


The product storytelling boilerplate is a minimal eCommerce boilerplate built using AstroJS and Crystallize. You can also check out the live demo (deploy it) of this boilerplate.

dounut-astro-local

What this guide covers:

  • Setting up your project
  • Instructions for running the project
  • Accessing the development site
  • Folder structure of the boilerplate
  • Editing the components and the theme
  • Deploying the project

Getting Started

To get started, head over to GitHub and clone the repository. Make sure to install all the required packages by running the following command for both the folders:

npm install

Running the Project

Running the project in development is straightforward. To start the development server, run the following command:

npm run dev

Accessing the Development Site

Once the development server is running, you will be able to browse to http://localhost:4321/.

dounut-astro-dev-server

Folder Structure

This section provides you with a better understanding of the folder structure.

src/components

Contains all the components used throughout the application

src/use-cases

Includes the GraphQL queries and mutations used to communicate with Crystallize.

src/pages

Has all the individual pages the website contains.

Editing the theme

All the theme related information can be edited in the tailwind.config.js file. This includes the colors, spacing, typography used throughout the application.

Editing the components

Components can be edited by heading over to the components folder in src.

Frontpage

The frontpage contains a grid and it is fetching all the grid related information (including the layout) from Crystallize. You can directly edit the grid in Crystallize for changes to take effect. Editing the styling such as the background and typography can be done in the grid-item component.

frontpage-dounut-astro-grid

Product

Individual product pages are using two components - one is the product component that contains the hero section, and the ‘Add to cart’ button and then the product-body component that can be edited to change the layout of the marketing information displayed on the page.

Cart, Checkout, and Confirmation

The basket, checkout, and the confirmation pages can be edited in their respective files located in the pages folder.

Please note that this boilerplate does not contain payment integrations such as Stripe. It is using a dummy payment method.

dounut-astro's People

Contributors

bleeky avatar dhairyadwivedi 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.