/bootstrap-shopify-theme

πŸ› A free Shopify Theme built with Bootstrap, BEM, Liquid, Sass, ESNext, Theme Tools, ... and Webpack.

Primary LanguageLiquidMIT LicenseMIT

πŸ› Bootstrap Shopify Theme

A free Shopify Theme built with Bootstrap, BEM, Liquid, Sass, ESNext, Theme Tools, ... and Webpack.

Experience

These are my experience when I have been working on this theme:

If you like this project, hit the STAR button to bookmark it ⭐️

Demonstration

Installation

Clone the source code into your computer.

git clone https://github.com/Maxvien/bootstrap-shopify-theme.git

Install the project's dependencies.

yarn install

Usage

First of all, you need to install Shopify CLI and login into your online store.

shopify login --store=your-store.myshopify.com

Then you can run the below commands to work with the theme.

Serve

Run webpack watch and serve the theme in development mode.

yarn serve

Push

Run webpack build and push the theme to your online store in production mode.

yarn push

Pull

Safely add the current project files to the git staging area, then pull the theme from your online store, and clean untracked asset files.

yarn pull

Test

Run unit test with jest and make sure the files are following the project workflow.

yarn test

Lint

Analyze the code to find problems with shopify theme check, eslint, stylelint and prettier.

yarn lint

Automatically fix problems.

yarn fix

Notes

Theme Assets

All files inside the theme/assets directory are ignored by git, except files starting with the static keyword in their filename.

Webpack Encore

Symfony Webpack Encore is a simpler way to integrate Webpack into your application. It wraps Webpack, giving you a clean & powerful API for bundling JavaScript modules, pre-processing CSS & JS and compiling and minifying assets. Encore gives you professional asset system that’s a delight to use.

If you want to use React or Vue in the theme, you can follow the documentation here.

Visual Studio Code Extensions

To speed up your productivity, you can install these extensions:

Related Projects

  • Next Shopify Storefront β€’ A Shopping Cart built with TypeScript, Tailwind CSS, Headless UI, Next.js, React.js, Shopify Hydrogen React,... and Shopify Storefront GraphQL API.
  • Shopify Data Faker β€’ A Shopify development tool for generating dummy store data.