Ce projet met en place rapidement un environnement WordPress + Woocommerce principalement en invité de commande..
En commentaire sous l’onglet html, il y a également un lien avec Novamira.
Le but étant de connecter le CMS à l’agent IA Claude afin de modifier directement les fichiers compsants votre WordPress.
### INSTALL Novamira
<!-- powershell -->
\$env:NOVAMIRA_AGENT = 'github-copilot'; irm | iex
% wp-config si pas en https & avec mamp
define( 'WP_ENVIRONMENT_TYPE', 'local' );
putenv( 'OPENSSL_CONF=C:/MAMP/bin/apache/conf/openssl.cnf' );
### INSTALL WP
wp core download --locale=fr_FR
wp config create --dbname="dustin" --dbuser="root" --dbpass="root" --locale="localhost" --dbprefix="pw_dustin_"
wp db create
wp core install --url= --title=dustin --admin_user=merlin --admin_password=1234 --admin_email=
wp option update blogname "dustin"
wp option update blogdescription "lorem"
wp theme delete twentytwenty twentytwentytwo twentytwentythree twentytwentyfour
wp plugin delete akismet hello
wp plugin install block-bad-queries really-simple-ssl antispam-bee query-monitor wp-mail-logging
wp rewrite structure "%postname%"
del /f wp-config-sample.php
del /f license.txt
del /f readme.html
### INSTALL Woo
wp plugin install woocommerce --activate
wp option update woocommerce_store_address "Rue de la Loi 16"
wp option update woocommerce_store_city "Bruxelles"
wp option update woocommerce_store_postcode "1000"
wp option update woocommerce_default_country "BE"
wp option update woocommerce_currency "EUR"
wp option update woocommerce_currency_pos "right_space"
wp option update woocommerce_price_thousand_sep " "
wp option update woocommerce_price_decimal_sep ","
wp option update woocommerce_price_num_decimals 2
wp option update woocommerce_allowed_countries "all"
wp option update woocommerce_calc_taxes "yes"
wp option update woocommerce_prices_include_tax "yes"
wp option update woocommerce_enable_guest_checkout "yes"
wp wc tool run install_pages --user=merlin
wp wc tax create --country=BE --rate="21.0000" --name="TVA" --shipping=true --user=merlin
wp wc payment_gateway update bacs --enabled=true --user=merlin
wp wc payment_gateway update cod --enabled=true --user=merlin
wp wc shipping_zone create --name="Belgique" --user=merlin
wp wc shipping_zone list --user=merlin --fields=id,name
wp wc shipping_zone_method create 1 --method_id=flat_rate --user=merlin
wp wc product create --name="T-shirt test" --type=simple --regular_price="19.90" --manage_stock=true --stock_quantity=25 --user=merlin
wp wc product create --name="Mug test" --type=simple --regular_price="9.50" --manage_stock=true --stock_quantity=3 --user=merlin
wp wc product list --user=merlin --fields=id,name,price,stock_quantity
wp theme install storefront
wp scaffold child-theme dustin --parent_theme=storefront --theme_name="Dustin" --author="Dustin" --activate
mkdir -p wp-content/themes/dustin/woocommerce/single-product
cp wp-content/plugins/woocommerce/templates/single-product/title.php wp-content/themes/dustin/woocommerce/single-product/title.php