How do I install Shopify locally?
February 5, 2018
To install Shopify locally, we use Themekit.
- Open Terminal
- type
brew tap shopify/shopify
& hit enter - type
brew install themekit
& hit enter - create a development store in Shopify
- go to apps in the sidebar, scroll to the bottom and click on manage private apps
- click on generate api credentials
- configure a new theme
- wherever you store your local projects, create a new directory to store the files we are getting from shopify.
- in terminal, CD into that directory you just created and add this in the commandline:
theme bootstrap --password=yourpassword --store=your-shop-name.myshopify.com
- obviously switch the password to whatever was generated in the previous step when you generated your API key.
- this theme is called Timber, and is a Shopify starter theme. It has a lot of the template parts that you’ll need already created. It is recommended that you use this when starting a new Shopify project.
- after you download the theme, open up the config.yml in a text editor
- to find out the ID of our theme go to: <your-shop-name>.myshopify.com/admin/themes and click on customize theme. In the url of the page you go to you’ll see some numbers:
- <your-shop-name>.myshopify.com/admin/themes/<id>/editor
- Grab the ID and add it into your config.yml file.
- now we’re ready to download the theme locally
- to do that use this command:
theme download
- you can also run:
theme update
and that will update the theme to the most recent version
- to do that use this command:
- type
To make updates to your Theme
- use this command:
theme watch
- once you’re done making changes, use this command: ‘control + c’ (same as gulp command)
- if you use ATOM for your IDE you can install the language-liquid package so that there is syntax highlighting.