oveio/craft4_starter

v1.1.01 2022-06-01 11:41 UTC

This package is auto-updated.

Last update: 2024-04-29 04:48:11 UTC


README

OVEIO Craft 4 Starter provides a quick-start project scaffold for Craft CMS websites. It uses Laravel Mix to build front-end assets.

Usage

Create your .env file

cp .env.example .env

Fill in .env with your local database settings and provide the URL from which the application will be served.

composer install
npm install
php craft setup

The craft setup wizard will guide you through the process of installing the CMS.

Running development build server

npx mix watch

Mix will watch you templates and scss/js files and build them whenever they change. BrowserSync will watch the built files and hot-update for assets or reload for templates.

Using built assets

The mix plugin is included by default and provides an easy way to include your compiled assets in your templates.

<link rel="stylesheet" href="{{ mix('/css/app.css') }}">
<script src="{{ mix('/js/app.js') }}"></script>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.