locomotivemtl/craft-boilerplate

There is no license information available for the latest version (0.1.1) of this package.

A modern CraftCMS project boilerplate.

0.1.1 2025-05-16 22:14 UTC

This package is auto-updated.

Last update: 2025-05-20 14:23:25 UTC


README

The goal of this project is to provide a fully working "boilerplate" (empty skeleton project) using the CraftCMS project.

Table of Content

How to Install

To start a CraftCMS project with this Boilerplate, simply:

1. Installing the boilerplate

Charcoal uses the Composer create-project command to install the boilerplate:

composer create-project --prefer-dist locomotivemtl/craft-boilerplate acme

2. Setup your local environment

Using Laravel Valet

# Move into your project's directory
cd acme

# Setup valet to use PHP 8.2 only for this project
valet isolate 8.2

# Install the dependencies
valet composer install

# Run the valet installer.
valet php craft install

# Enable the Vite plugin
php craft plugin/install vite

Using DDEV

WIP

3. Setup Vite

@todo Quick description of what is Vite and what problems it solves.

Add vite configurations to .env file

VITE_SERVER_URL="http://localhost"
VITE_SERVER_PORT=5173
# Make sure to set the environment to 'dev'. Otherwise, Craft won't be looking for the Vite server.
CRAFT_ENVIRONMENT=dev

4. Setup front-end tools

npm install

5. Test your installation

Start your Vite server

npm run dev

Visit your project locally http://acme.test

Dependencies and Requirements

  • PHP 8.2+
    • ext-json
    • ext-pdo
    • ext-spl
    • ext-mbstring

Development

Development dependencies

Authors