Click the button below and it will help you create a new repo, create a new Netlify project, and deploy this Theme!
-
Clone this repo with one of these options:
- Click the 'Use this template' button at the top of the page
- Via the command line:
git clone https://github.com/netlify-templates/gatsby-ecommerce-theme/
- Or you can clone the theme straight from the Netlify CLI, using the
netlify sites:create-template
command in your terminal (learn more about this command here) to do the entire flow for you.
From there, you can install the project's dependencies by running:
npm install or yarn install
Finally, you can run your project locally with:
cd gatsby-sydney-ecommerce-theme/
npm start or yarn start
or, run it using the Netlify CLI with:
netlify run dev
Open your browser and visit http://localhost:5000, your project should now be running!
After installing and customizing your new e-commerce theme it's now time to deploy!
-
You can Deploy using the Netlify CLI:
netlify init # initialize a new Netlify project & deploy
It will use the information from the included Netlify configuration file, netlify.toml
, to set up the build command as gatsby build
to create a static project and locate the build project in the public
directory.
The init
process will also set up continuous deployment for your project so that a new build will be triggered & deployed when you push code to the repo (you can change this from your project dashboard: Site Settings/Build & deploy/Continuous Deployment).
You can also use netlify deploy (--prod)
to manually deploy and netlify open
to open your project dashboard.
๐ก we only have so many keystrokes to give, use
ntl
shorthand fornetlify
or make an alias of your own to save hours...of accumulated milliseconds
- You can deploy within the Netlify site by connecting to git, this video will walk you through that process.
- Or, you can use the Deploy to Netlify button which will walk you through the process of spinning up a repo, creating a new project in Netlify, AND deploying it :)