A free Shopify Theme built with Bootstrap, BEM, Liquid, Sass, ESNext, Theme Tools, ... and Webpack.
These are my experience when I have been working on this theme:
- Designing & Building Shopify Themes from Scratch.
- Using Bootstrap@5 to Create a Nice User Interface.
- Using BEM Methodology to Create Minimal, Reusable Source Code.
- Using Liquid, SASS, ESNext to Develop the Theme Fashionably.
- Using Shopify Theme Scripts to Solve Theme Problems Faster.
- Using Shopify Metafield to Add Extra Information to Other Resources.
- Using Swiper to Create Beautiful, Touchable, Responsive Sliders.
- Using CSS Media Queries to Create a Mobile-First and Responsive Design.
- Using Shopify Theme CLI to Develop and Deploy the Theme.
- Using PostCSS to Make CSS Code Compatible with Old Browsers.
- Using CoreJS to Make JavaScript Code Compatible with Old Browsers.
- Using Webpack Encore to Bundle all SCSS, JavaScript, Font, Image, ... Assets.
- Using Shopify Theme Check, ESlint, Stylelint, Prettier to Follow Theme Best Practices.
If you like this project, hit the STAR button to bookmark it โญ๏ธ
- Store Link: https://maxvien-bootstrap.myshopify.com
- Store Password:
maxvien
Clone the source code into your computer.
git clone https://github.com/Maxvien/bootstrap-shopify-theme.git
Install the project's dependencies.
yarn install
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.
Run webpack watch
and serve
the theme in development mode.
yarn serve
Run webpack build
and push
the theme to your online store in production mode.
yarn push
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
Run unit test
with jest and make sure the files are following the project workflow.
yarn test
Analyze the code to find problems with shopify theme check
, eslint
, stylelint
and prettier
.
yarn lint
Automatically fix problems.
yarn fix
All files inside the theme/assets
directory are ignored by git
, except files starting with the static
keyword in their filename.
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.
To speed up your productivity, you can install these extensions:
- Eslint
- Prettier
- Stylelint
- Shopify Liquid
- IntelliSense for CSS
- Material Icon Theme
- Visual Studio IntelliCode
- 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.