These instructions require that you have installed DDEV. Read how to install DDEV
-
Quickstart your project by running
composer create-project -s dev --remove-vcs t3kit/t3kit-starter [<directory>] [<version>]
-
cd [project-dir]
(e.g.cd t3kit-starter
) -
Run
composer ddev-config
. Specify a project name or use the suggested project name. The other options should be correct, so keep the defaults. -
Run
ddev start
-
Run
ddev composer install
to install Composer dependencies. -
Run
ddev exec npm install
to install NPM dependencies. -
Run
ddev exec npm run dev
to build development assests for themes. -
Run
ddev import-db --src=.localconf/db/dbdump/t3kit11.sql
to import the database. -
Visit your site at the project URL. (e.g. https://t3kit-starter.ddev.site)
You can run ddev typo3 [COMMAND]
and ddev typo3cms [COMMAND]
to directly execute the TYPO3 CLI and helhum/typo3-console commands.
Since we are running NPM within DDEV's Docker container, watching for file changes should also be done there. This requires that you SSH into the container and execute the code there.
Since it will be running constantly, we recommend opening a new terminal window and tab for this command.
-
Make sure the project directory is the working directory. (
cd [project-dir]
, e.g.cd /path/to/myprojects/t3kit-starter
) -
Run
ddev ssh
to enter the container's Bash shell. -
Run
cd public/typo3conf/ext/theme_mytheme
to change into you're theme's directory. (Assumingtheme_mytheme
is the name of your theme extension.) -
Run
npm run start
to start watching for changes in the theme's CSS and JavaScript files.
You can stop the script by hitting ctrl + C
. You can run exit
to exit the DDEV container's shell.