1. Create the Project Directory
First, create a new directory for your site:
2. Install Jigsaw via Composer
Next, navigate to your new project directory and install Jigsaw using Composer:
1cd my-site2composer require tightenco/jigsaw
3. Initialize your Project
Finally, from your project directory, run Jigsaw's
init command to scaffold the default directory structure:
Alternatively, get up and running quickly by using a starter template, which starts you off with a fully-configured, professionally-designed site, ready for you to customize with your content. You can use one of Jigsaw's built-in templates for a blog or an open source documentation site, or use a third-party template.
1vendor/bin/jigsaw init blog
1vendor/bin/jigsaw init docs
By default, Jigsaw gives you the following directory structure:
At the root of the directory, Jigsaw provides a
config.php file where you can specify configuration settings for your site, along with
webpack.mix.js for settings related to compiling your assets.
Next, learn about building and previewing your site.
Why are there two
/source, one prefixed with an underscore? Find out in the Compiling Assets section.