Free Shopify Theme built with Bootstrap, BEM, Theme Tools, Swiper, Gulp, Parcel, Liquid, SASS, ...

Maxvien
Visitor
1 0 1

Hello there,

I have just done my Shopify side project. My Bootstrap Shopify Theme built with BootstrapBEMTheme ToolsSwiperGulpParcelLiquidSASSPostCSSESNext, ... and Passion.

Looking forward to hearing from your comments!

A. Experience

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

If you like the project, please hit the STAR button to support my work. 

Bootstrap Shopify ThemeBootstrap Shopify Theme

B. Source Code

You can get the source code here: https://github.com/maxvien/bootstrap-shopify-theme

C. Demonstration

D. 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

E. Configuration

To config the project, you need to copy and rename the config.yml.example file to the config.yml file. Then update the store, password, theme_id properties.

There are two sections in the config.yml file:

  • The development section is for your development store.
  • The production section is for your production store.
development:
  store: store-name.myshopify.com
  password: store-admin-api-password
  theme_id: store-theme-id

production:
  store: store-name.myshopify.com
  password: store-admin-api-password
  theme_id: store-theme-id

1. Store Property

To fill the store property, you copy your store's hostname and paste it to the config.yml file.

2. Password Property

To fill the password property, please follow these steps:

  1. From your Shopify admin, click Apps.
  2. Near the bottom of the page, click Manage private apps.
  3. If private app development is disabled, then click Enable private app development. Only the store owner can enable private app development.
  4. Click Create new private app.
  5. In the App details section, fill out the app name and your email address.
  6. In the Admin API section, click Show inactive Admin API permissions.
  7. Scroll to the Themes section and select Read and write from the dropdown.
  8. Click Save.
  9. Read the private app confirmation dialog, then click Create app.
  10. In the Admin API section of the App, copy the password and paste it into the config.yml file.

2. Theme ID Property

To fill the theme_id property, please follow these steps:

  1. From your Shopify admin, click Online Store.
  2. At the top of the Online Store menu, click Themes.
  3. In the Current theme section, click Actions and select Duplicate to backup your current theme.
  4. Next, click the Customize button.
  5. There is a link like this https://store-name.myshopify.com/admin/themes/[theme_id]/editor on your browser's address bar. Copy the theme_id and paste it into the config.yml file.

F. Development

To develop the theme, you need to follow the Configuration to config the development section in the config.yml file.

Next, run this command to run the development server.

yarn dev

Open https://localhost:8080/ with your browser to see the result.

1. Shopify Theme Check

To follow Shopify Theme best practices, you need to install Shopify Theme Check.

2. Visual Studio Code Extensions

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

G. Production

To deploy the theme, you need to follow the Configuration to config the production section in the config.yml file.

Next, run this command to deploy the theme to your production store.

yarn deploy
Replies 3 (3)

张银
Tourist
10 0 2

Great share, thank you!

张银
Tourist
10 0 2

The project worked, but I couldn't develop it. I don't understand the workflow、Webpack Encore

张银
Tourist
10 0 2

Hello, can you give a brief introduction to how to start your workflow、I'm not familiar with  WebPack、 Parcel、Please tell me What do I need to learn

 

import  { withElements } from 'with-elements' ;

 

"withElements"  what's the meaning?