Skip to content

AstroJS-Powered Shopify Storefront Boilerplate with TailwindCSS and Nanostores.

License

Notifications You must be signed in to change notification settings

themefisher/astrofront

Repository files navigation

Astrofront | AstroJs + Shopify + Tailwind CSS + TypeScript Starter and Boilerplate

A free, production-ready astro.js template powered by Tailwind CSS and TypeScript, specifically designed for Shopify. Utilizes the Shopify Storefront API through GraphQL and providing everything you need to jumpstart your Astro project and save valuable time.

Made with ♥ by Themefisher

If you find this project useful, please give it a ⭐ to show your support.

license code size contributors

📌 Key Features

  • 🌐 Dynamic Products from Shopify Storefront API
  • 💸 Checkout and Payments with Shopify
  • 🌞 Automatic Light/Dark Mode
  • 🚀 Fetching and Caching Paradigms
  • 🔗 Server Actions for Mutations
  • 🔐 User Authentication
  • 🧩 Similar Products Suggestions
  • 🔍 Search, Sort, Different Views Functionality
  • 🏷️ Tags & Categories & Vendors & Price Range & Product Variants Functionality
  • 🖼️ Single Product Image Zoom, Hover Effect, Slider
  • 🛒 Cart & Easy editing options for cart items
  • 📝 Product Description on Multiple Tabs
  • 🔗 Netlify Setting Pre-configured
  • 📞 Support Contact Form
  • 📱 Fully Responsive
  • 🔄 Dynamic Home Banner Slider
  • 📝 Write and Update Content in Markdown / MDX
  • ⌛ Infinite Product Load on Scrolling

📄 10+ Pre-designed Pages

  • 🏠 Homepage
  • 👤 About
  • 📞 Contact
  • 🛍️ Products
  • 📦 Product Single
  • 💡 Terms of services
  • 📄 Privacy Policy
  • 🔐 Login
  • 🔑 Register
  • 🚫 Custom 404

🚀 Getting Started

📦 Dependencies

  • shopify
  • astro 4.16.9+
  • node v20.10+
  • npm v10.2+
  • tailwind v3.4+

🛒 Retrieve Shopify Token & Add Demo Products

  • To get the tokens needed, create a Shopify partner account. Screenshot_1

  • Now go to 'stores' and select 'Add store.' Create a development store using the option 'Create development store'. Screenshot_2

  • Complete the process by creating your development store. This involves following the steps shown in the image. Screenshot_3

  • Click on import products. Screenshot_4

  • Locate the 'products' CSV file in the public folder of the repository and upload it for demo products. Screenshot_5

  • On the admin dashboard, click on ‘Settings’ at the bottom of the left sidebar. Screenshot_6

  • On the Settings page, click on ‘Apps and sales channels’ on the left sidebar. Screenshot_7

  • In the Apps and sales channels page that opens, click on ‘Develop apps’ on the top right. Screenshot_8

  • Now, on the App development page that opens, click on ‘Create an app’. Screenshot_10

  • A ‘Create an app’ popup opens. Fill in any name in the ‘App Name’ text box. In the App Developer text box, your name and email id is automatically fetched. Else type in the same email id you used while signing up for the Shopify store. Screenshot_11

  • Next, click on ‘Configure’ in the Storefront API integration section. Screenshot_12

  • In the Storefront API access scopes, select and check all the boxes and click on ‘Save’ and then ‘Install app’. Screenshot_13

  • Navigate to the 'API credentials' tab and locate three essential pieces of information. Subsequently, update your .env file by replacing the placeholder quotes("") in the .env.example file with your Shopify credentials. Screenshot_15 Screenshot_16

  • When adding your product, use the same alt title for images with the same color. This helps the first image appear as the color variant in the selector. Screenshot_18

  • We have the option to create additional collections for products. Screenshot_17

👉 Install Dependencies

npm install

👉 Development Command

npm run dev

👉 Build Command

npm run build

🐞 Reporting Issues

We use GitHub Issues as the official bug tracker for this Template. Please Search existing issues. It’s possible someone has already reported the same problem. If your problem or idea has not been addressed yet, feel free to open a new issue.

📝 License

Copyright (c) 2024 - Present, Designed & Developed by Themefisher

Code License: Released under the MIT license.

Image license: The images are only for demonstration purposes. They have their license, we don't have permission to share those images.

💻 Need Custom Development Services?

If you need a custom theme, theme customization, or complete website development services from scratch you can Hire Us.