envsa/craft

envsa Craft 3 CMS scaffolding project

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Language:Twig

Type:project

2.0.0 2021-06-07 04:42 UTC

This package is auto-updated.

Last update: 2024-05-11 11:43:02 UTC


README

 

Craft CMS logo

About envsa/craft

This is an alternate scaffolding package for Craft 3 CMS projects to Pixel & Tonic's canonical craftcms/craft package.

This project has been built following base principals from Andrew Welch's scaffolding project nystudio107/craft package (as at version 2.1.1).

Using envsa/craft

This project package works exactly the way Pixel & Tonic's craftcms/craft package works; you create a new project by first creating & installing the project:

composer create-project envsa/craft PATH

Make sure that PATH is the path to your project, including the name you want for the project, eg.:

composer create-project envsa/craft craft3

Say no when prompted to start the craft setup, then cd to your new project directory.

cd PATH

The next step will depend on your local dev setup, we'll be using nitro.

nitro add
  • Hostname: [craft3.nitro]
  • Web root: [web]
  • PHP version: [7.4]
  • Add a db for the site: [Y] [craft3]
  • Update the .env file: [Y]
  • Apply changes [Y]

You will also need to update the .env file with the SITE_URL that you chose for the hostname.

nitro db import starterbase.sql

When prompted use the db that you specified in the previous step [craft3]

Run Craft's setup console command to create your environment:

./craft setup

Finally we need to build our assets.

nvm use
npm install
npx install-peerdeps --dev @envsa/eslint-config
npm run build

You should be ready to go, visit the your url and test it out.

Pre git checklist

Get contents of of config/license.key and add them to the environment variable.

Uncomment line 22 of ./craft and web/index.php

Remove starterbase.db

Default login

dew.internet@sa.gov.au
password