Skip to content

Commit

Permalink
added npm install to composer creaste and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CreateSean committed Oct 28, 2024
1 parent 87aec39 commit 08e813e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ Set up your local development, if you are using DDev for local development then
4. update email settings of dotenv for staging/production. Current settings work with mailhog in ddev. To open mailhog run `ddev launch -m`
5. Run `ddev start` and the site should start up.
6. run `ddev import-db --file=db.sql.gz` this will import the seeder database with settings, channels, etc.
7. run `php craft setup/security-key`
8. run `php craft setup/app-id`
9. run `ddev launch access` will open the Craft CP
10. To access the db from your host machine run `ddev describe` and you'll get the connection details needed
7. run `ddev launch access` will open the Craft CP
8. To access the db from your host machine run `ddev describe` and you'll get the connection details needed

if you clone the starter instead of using composer to create the package you will need to run additional commands

1. `php craft setup/security-key`
2. `php craft setup/app-id`
3. `ddev composer install`
4. `npm run install`

Login: `cc_admin`
Password: `letmein`
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
],
"post-create-project-cmd": [
"@php craft setup/security-key",
"@php craft setup/app-id"
"@php craft setup/app-id",
"@npm install"
],
"nuke": [
"rm -rf vendor/ && composer clear-cache && composer install"
Expand Down

0 comments on commit 08e813e

Please sign in to comment.