Skip to content

cmalven/craft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

your-project-title

your-project-description


Create a new project with this template

npx degit https://github.com/cmalven/craft your-project-slug
cd your-project-slug
  • Run bash ./bin/setup.sh "my-actual-slug" "My Actual Title" "A brief description of my project".
  • Follow the steps in Setup below.
  • Install Craft with ddev craft install
  • Run ddev craft project-config/apply --force
  • Run ddev craft update all to update Craft and plugins.
  • Run npx npm-check -u to update all frontend dependencies.
  • Delete this section of the README.
  • Create a git repo with git init
  • Commit your changes with git add . && git commit -m "Initial commit"

Setup

  • Install DDEV
  • ddev start
  • ddev composer install
  • cp .env.example.dev .env and modify the contents of .env to match your setup
  • ddev php craft setup/app-id && ddev php craft setup/security-key
  • ddev import-db (if a database already exists)

Front End Dependencies

First, make sure you have Node.js installed. Then:

  • npm i
  • npm start

Development Server

Run ddev start and npm start to start the development server. Then you can access the site at the URL set for PRIMARY_SITE_URL in .env.

Build for deployment

Run npm run build to build prepare all assets for deployment.

About

Composer starter project for Craft CMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 32.9%
  • Twig 32.0%
  • TypeScript 16.9%
  • PHP 11.0%
  • JavaScript 5.1%
  • Handlebars 1.5%
  • Other 0.6%