diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..82a53104 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,55 @@ +// +// launch.json is used to configure the debugger in Visual Studio Code at a project level. +// + +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003, + "pathMappings": { + "/var/www/html": "${workspaceFolder}/src" // Replace with your local path + } + }, + { + "name": "Launch currently open script", + "type": "php", + "request": "launch", + "program": "${file}", + "cwd": "${fileDirname}", + "port": 0, + "runtimeArgs": [ + "-dxdebug.start_with_request=yes" + ], + "env": { + "XDEBUG_MODE": "debug,develop", + "XDEBUG_CONFIG": "client_port=${port}" + } + }, + { + "name": "Launch Built-in web server", + "type": "php", + "request": "launch", + "runtimeArgs": [ + "-dxdebug.mode=debug", + "-dxdebug.start_with_request=yes", + "-S", + "localhost:0" + ], + "program": "", + "cwd": "${workspaceRoot}", + "port": 9003, + "serverReadyAction": { + "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started", + "uriFormat": "http://localhost:%s", + "action": "openExternally" + } + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..fa5c6707 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "php.version": "8.4" +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..243d10e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# +# This file defines the Docker image used to create a Docker container +# + +# Base image: Apache with PHP 8.3 (official) +FROM php:8.3-apache + +# Install Xdebug +RUN apt-get update \ + && pecl install xdebug \ + && docker-php-ext-enable xdebug + +# Copy the local xdebug.ini file to the specified location in the container +COPY ./docker/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..0839fd2b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +# +# This file defines the services that make up the application +# Each service is a container that runs a single process +# Each container is built from an image, according to the Dockerfile specified in the build section +# For more information, see: https://docs.docker.com/compose/compose-file/ +# + +version: '3.9' # Specify the Docker Compose version +services: + web: # Define the web service + build: # Define how to build the Docker image + context: . # Directory containing the Dockerfile + dockerfile: Dockerfile # Specify the Dockerfile (optional if named Dockerfile) + ports: # Specify port mappings + - "8000:80" # Map port 8000 on the host to port 80 in the container + volumes: # Define volume mounts + - "./src:/var/www/html" # Mount the local ./src directory to /var/www/html in the container + restart: always # Always restart the container if it stops \ No newline at end of file diff --git a/docker/xdebug.ini b/docker/xdebug.ini new file mode 100644 index 00000000..e738964a --- /dev/null +++ b/docker/xdebug.ini @@ -0,0 +1,11 @@ +; +; Docker Xdebug configuration +; + +[xdebug] +zend_extension=xdebug.so +xdebug.mode=debug +xdebug.start_with_request=yes +xdebug.client_host=host.docker.internal ; For Docker Desktop +xdebug.client_port=9003 ; Default Xdebug port +xdebug.log=/tmp/xdebug.log ; Optional: specify log file \ No newline at end of file diff --git a/src/app/Controllers/Controller.php b/src/app/Controllers/Controller.php new file mode 100644 index 00000000..e69de29b diff --git a/src/app/Models/User.php b/src/app/Models/User.php new file mode 100644 index 00000000..e69de29b diff --git a/src/app/Providers/AppServiceProvider.php b/src/app/Providers/AppServiceProvider.php new file mode 100644 index 00000000..e69de29b diff --git a/src/bootstrap/app.php b/src/bootstrap/app.php new file mode 100644 index 00000000..e69de29b diff --git a/src/config/app.php b/src/config/app.php new file mode 100644 index 00000000..e69de29b diff --git a/src/public/index.php b/src/public/index.php new file mode 100644 index 00000000..e69de29b diff --git a/src/resources/views/index.blade.php b/src/resources/views/index.blade.php new file mode 100644 index 00000000..e69de29b diff --git a/src/routes/web.php b/src/routes/web.php new file mode 100644 index 00000000..e69de29b diff --git a/src/storage/images/URBANTREE.png b/src/storage/images/URBANTREE.png new file mode 100644 index 00000000..1c23d27d Binary files /dev/null and b/src/storage/images/URBANTREE.png differ