2026-03-17 18:16:21 +01:00
2023-10-21 11:41:43 +02:00
2024-06-08 11:22:59 +02:00
2026-11-19 13:20:30 +01:00
2026-11-19 17:08:56 +01:00
2026-03-17 18:16:21 +01:00
2026-03-17 18:16:21 +01:00
2026-11-18 10:17:10 +01:00

instructions

  • start server with php, and browser-sync for auto reload :
    • npm run dev
  • setup instructions :
    • install apps : sudo apt update && sudo apt install php-cli nodejs npm
    • verify : php -v & node -v & npm -v
    • install dependencies : npm ci

[only for info] at project creation, the following actions where done, no need to do them again

  • creates package.json and installs browser-sync as a dev dependency (already done, npm ci restores it) :
    • run : npm init -y && npm install --save-dev browser-sync
  • adds the dev script to package.json > scripts, this is the command behind npm run dev :
    • add in package.jsons > scripts : php -S localhost:8000 & browser-sync start --proxy localhost:8000 --files "**/*.php,**/*.css,**/*.js" --port 3000
      • php -S localhost:8000 → starts PHP built-in server
      • & → runs PHP server in the background (Linux/macOS)
      • browser-sync start --proxy localhost:8000 → proxies PHP server
      • --files "**/*.php,**/*.css,**/*.js" → watches files for changes
      • --port 3000 → BrowserSync UI accessible at http://localhost:3000

ressources

html validator : https://validator.w3.org/nu


difficulties

S
Description
No description provided
Readme
66 MiB
Languages
HTML 72.1%
CSS 25.7%
PHP 2.2%