You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Raf Vergauwen 59e754893e added some extra documentation 2 years ago
.vscode added some extra documentation 2 years ago
private added some extra documentation 2 years ago
public added some extra documentation 2 years ago
src added some extra documentation 2 years ago
templates added some extra documentation 2 years ago
.browserslistrc added some extra documentation 2 years ago
.editorconfig added some extra documentation 2 years ago
.gitattributes added some extra documentation 2 years ago
.gitignore added some extra documentation 2 years ago
.markdownlint.json added some extra documentation 2 years ago
.prettierignore added some extra documentation 2 years ago
.prettierrc added some extra documentation 2 years ago
LICENSE added some extra documentation 2 years ago
README.md added some extra documentation 2 years ago
composer.json added some extra documentation 2 years ago
composer.lock added some extra documentation 2 years ago

README.md

Microblog

A - Lessons

  1. Initiatie Docker
  2. Installatie Slim
  3. Slim eerste stappen
  4. POST en Debugging
  5. POST en GET Routes
  6. POST/GET mep any routes en routeparams
  7. Start BLOG project
  8. Blog build-up
  9. Add blog post
  10. SQL Injection
  11. Namespaces
  12. Namespaces toepassing
  13. Twig to module
  14. Twig templates

B - Basic Commands Docker

B1 - Use composer

docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 <the rest of the command>

B2 - Install Slim

  1. Create a new folder

  2. Install Slim 4

docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 require slim/slim:"4.\*"
  1. Install PSR-7 implementation for use with Slim 4
docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 require slim/psr7
  1. Install Twig 3
docker run --rm -t -i -v ${PWD}:/app composer require "twig/twig:^3.0"
  1. Modify composer.json by adding the following just before the last parenthesis
"config": {
"platform-check": false
}
  1. Update Composer2
docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 update

B3 - Start PHP

docker run --rm -t -i -v ${PWD}:/src -p 8080:8000 debaetsr/php_xdebug

B4 - Use Debug

  1. If necessary, create a new launch.json file, and replace (or add) the “Listen for XDebug” with the following (note parentheses and commas):
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": { "/src": "${workspaceRoot}" }
},
  1. The first time when debugging, add this in the URL
?XDEBUG_SESSION_START=1

B5 - Other

php -S 0.0.0.0:8000 -t public