your-project-description
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
Setupbelow. - Install Craft with
ddev craft install - Run
ddev craft project-config/apply --force - Run
ddev craft update allto update Craft and plugins. - Run
npx npm-check -uto 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"
- Install DDEV
ddev startddev composer installcp .env.example.dev .envand modify the contents of.envto match your setupddev php craft setup/app-id && ddev php craft setup/security-keyddev import-db(if a database already exists)
First, make sure you have Node.js installed. Then:
npm inpm start
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.
Run npm run build to build prepare all assets for deployment.