Skip to content

Commit aca3867

Browse files
committed
first commit
0 parents  commit aca3867

File tree

278 files changed

+43250
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+43250
-0
lines changed

.ddev/commands/web/analyse

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Description: Run PHPStan
4+
## Usage: analyse [args...]
5+
## Example: "ddev analyse"
6+
7+
vendor/bin/phpstan analyse "$@"

.ddev/commands/web/format

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
## Description: Format all code (PHP + JS/TS)
4+
## Usage: format
5+
## Example: "ddev format"
6+
7+
vendor/bin/pint
8+
npm run format

.ddev/commands/web/pint

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Description: Run Laravel Pint
4+
## Usage: pint [args...]
5+
## Example: "ddev pint" or "ddev pint --test"
6+
7+
vendor/bin/pint "$@"

.ddev/commands/web/test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Description: Run Pest tests
4+
## Usage: test [args...]
5+
## Example: "ddev test" or "ddev test tests/Feature/UserTest.php"
6+
7+
vendor/bin/pest "$@"

.ddev/config.yaml

Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
name: laradev-react
2+
type: laravel
3+
docroot: public
4+
php_version: '8.4'
5+
webserver_type: nginx-fpm
6+
router_http_port: '8080'
7+
router_https_port: '8443'
8+
xdebug_enabled: false
9+
additional_hostnames: []
10+
additional_fqdns: []
11+
database:
12+
type: mysql
13+
version: '8.0'
14+
use_dns_when_possible: true
15+
timezone: Europe/Berlin
16+
composer_version: '2'
17+
web_environment: []
18+
nodejs_version: '24'
19+
corepack_enable: false
20+
web_extra_exposed_ports:
21+
- name: vite
22+
container_port: 5179
23+
http_port: 5178
24+
https_port: 5179
25+
# Enforcing the use of the proper version of nvm:
26+
hooks:
27+
post-start:
28+
- exec: 'nvm alias default system > /dev/null'
29+
# Key features of DDEV's config.yaml:
30+
31+
# name: <projectname> # Name of the project, automatically provides
32+
# http://projectname.ddev.site and https://projectname.ddev.site
33+
34+
# type: <projecttype> # backdrop, cakephp, craftcms, drupal, drupal6, drupal7, drupal8, drupal9, drupal10, drupal11, laravel, magento, magento2, php, shopware6, silverstripe, symfony, typo3, wordpress
35+
# See https://ddev.readthedocs.io/en/stable/users/quickstart/ for more
36+
# information on the different project types
37+
38+
# docroot: <relative_path> # Relative path to the directory containing index.php.
39+
40+
# php_version: "8.3" # PHP version to use, "5.6" through "8.4"
41+
42+
# You can explicitly specify the webimage but this
43+
# is not recommended, as the images are often closely tied to DDEV's' behavior,
44+
# so this can break upgrades.
45+
46+
# webimage: <docker_image> # nginx/php docker image.
47+
48+
# database:
49+
# type: <dbtype> # mysql, mariadb, postgres
50+
# version: <version> # database version, like "10.11" or "8.0"
51+
# MariaDB versions can be 5.5-10.8, 10.11, and 11.4.
52+
# MySQL versions can be 5.5-8.0.
53+
# PostgreSQL versions can be 9-17.
54+
55+
# router_http_port: <port> # Port to be used for http (defaults to global configuration, usually 80)
56+
# router_https_port: <port> # Port for https (defaults to global configuration, usually 443)
57+
58+
# xdebug_enabled: false # Set to true to enable Xdebug and "ddev start" or "ddev restart"
59+
# Note that for most people the commands
60+
# "ddev xdebug" to enable Xdebug and "ddev xdebug off" to disable it work better,
61+
# as leaving Xdebug enabled all the time is a big performance hit.
62+
63+
# xhprof_enabled: false # Set to true to enable Xhprof and "ddev start" or "ddev restart"
64+
# Note that for most people the commands
65+
# "ddev xhprof" to enable Xhprof and "ddev xhprof off" to disable it work better,
66+
# as leaving Xhprof enabled all the time is a big performance hit.
67+
68+
# webserver_type: nginx-fpm or apache-fpm
69+
70+
# timezone: Europe/Berlin
71+
# If timezone is unset, DDEV will attempt to derive it from the host system timezone
72+
# using the $TZ environment variable or the /etc/localtime symlink.
73+
# This is the timezone used in the containers and by PHP;
74+
# it can be set to any valid timezone,
75+
# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
76+
# For example Europe/Dublin or MST7MDT
77+
78+
# composer_root: <relative_path>
79+
# Relative path to the Composer root directory from the project root. This is
80+
# the directory which contains the composer.json and where all Composer related
81+
# commands are executed.
82+
83+
# composer_version: "2"
84+
# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1
85+
# to use the latest major version available at the time your container is built.
86+
# It is also possible to use each other Composer version channel. This includes:
87+
# - 2.2 (latest Composer LTS version)
88+
# - stable
89+
# - preview
90+
# - snapshot
91+
# Alternatively, an explicit Composer version may be specified, for example "2.2.18".
92+
# To reinstall Composer after the image was built, run "ddev debug rebuild".
93+
94+
# nodejs_version: "22"
95+
# change from the default system Node.js version to any other version.
96+
# See https://ddev.readthedocs.io/en/stable/users/configuration/config/#nodejs_version for more information
97+
# and https://www.npmjs.com/package/n#specifying-nodejs-versions for the full documentation,
98+
# Note that using of 'ddev nvm' is discouraged because "nodejs_version" is much easier to use,
99+
# can specify any version, and is more robust than using 'nvm'.
100+
101+
# corepack_enable: false
102+
# Change to 'true' to 'corepack enable' and gain access to latest versions of yarn/pnpm
103+
104+
# additional_hostnames:
105+
# - somename
106+
# - someothername
107+
# would provide http and https URLs for "somename.ddev.site"
108+
# and "someothername.ddev.site".
109+
110+
# additional_fqdns:
111+
# - example.com
112+
# - sub1.example.com
113+
# would provide http and https URLs for "example.com" and "sub1.example.com"
114+
# Please take care with this because it can cause great confusion.
115+
116+
# upload_dirs: "custom/upload/dir"
117+
#
118+
# upload_dirs:
119+
# - custom/upload/dir
120+
# - ../private
121+
#
122+
# would set the destination paths for ddev import-files to <docroot>/custom/upload/dir
123+
# When Mutagen is enabled this path is bind-mounted so that all the files
124+
# in the upload_dirs don't have to be synced into Mutagen.
125+
126+
# disable_upload_dirs_warning: false
127+
# If true, turns off the normal warning that says
128+
# "You have Mutagen enabled and your 'php' project type doesn't have upload_dirs set"
129+
130+
# ddev_version_constraint: ""
131+
# Example:
132+
# ddev_version_constraint: ">= 1.22.4"
133+
# This will enforce that the running ddev version is within this constraint.
134+
# See https://github.com/Masterminds/semver#checking-version-constraints for
135+
# supported constraint formats
136+
137+
# working_dir:
138+
# web: /var/www/html
139+
# db: /home
140+
# would set the default working directory for the web and db services.
141+
# These values specify the destination directory for ddev ssh and the
142+
# directory in which commands passed into ddev exec are run.
143+
144+
# omit_containers: [db, ddev-ssh-agent]
145+
# Currently only these containers are supported. Some containers can also be
146+
# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit
147+
# the "db" container, several standard features of DDEV that access the
148+
# database container will be unusable. In the global configuration it is also
149+
# possible to omit ddev-router, but not here.
150+
151+
# performance_mode: "global"
152+
# DDEV offers performance optimization strategies to improve the filesystem
153+
# performance depending on your host system. Should be configured globally.
154+
#
155+
# If set, will override the global config. Possible values are:
156+
# - "global": uses the value from the global config.
157+
# - "none": disables performance optimization for this project.
158+
# - "mutagen": enables Mutagen for this project.
159+
# - "nfs": enables NFS for this project.
160+
#
161+
# See https://ddev.readthedocs.io/en/stable/users/install/performance/#nfs
162+
# See https://ddev.readthedocs.io/en/stable/users/install/performance/#mutagen
163+
164+
# fail_on_hook_fail: False
165+
# Decide whether 'ddev start' should be interrupted by a failing hook
166+
167+
# host_https_port: "59002"
168+
# The host port binding for https can be explicitly specified. It is
169+
# dynamic unless otherwise specified.
170+
# This is not used by most people, most people use the *router* instead
171+
# of the localhost port.
172+
173+
# host_webserver_port: "59001"
174+
# The host port binding for the ddev-webserver can be explicitly specified. It is
175+
# dynamic unless otherwise specified.
176+
# This is not used by most people, most people use the *router* instead
177+
# of the localhost port.
178+
179+
# host_db_port: "59002"
180+
# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic
181+
# unless explicitly specified.
182+
183+
# mailpit_http_port: "8025"
184+
# mailpit_https_port: "8026"
185+
# The Mailpit ports can be changed from the default 8025 and 8026
186+
187+
# host_mailpit_port: "8025"
188+
# The mailpit port is not normally bound on the host at all, instead being routed
189+
# through ddev-router, but it can be bound directly to localhost if specified here.
190+
191+
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
192+
# Extra Debian packages that are needed in the webimage can be added here
193+
194+
# dbimage_extra_packages: [telnet,netcat]
195+
# Extra Debian packages that are needed in the dbimage can be added here
196+
197+
# use_dns_when_possible: true
198+
# If the host has internet access and the domain configured can
199+
# successfully be looked up, DNS will be used for hostname resolution
200+
# instead of editing /etc/hosts
201+
# Defaults to true
202+
203+
# project_tld: ddev.site
204+
# The top-level domain used for project URLs
205+
# The default "ddev.site" allows DNS lookup via a wildcard
206+
# If you prefer you can change this to "ddev.local" to preserve
207+
# pre-v1.9 behavior.
208+
209+
# ngrok_args: --basic-auth username:pass1234
210+
# Provide extra flags to the "ngrok http" command, see
211+
# https://ngrok.com/docs/ngrok-agent/config or run "ngrok http -h"
212+
213+
# disable_settings_management: false
214+
# If true, DDEV will not create CMS-specific settings files like
215+
# Drupal's settings.php/settings.ddev.php or TYPO3's additional.php
216+
# In this case the user must provide all such settings.
217+
218+
# You can inject environment variables into the web container with:
219+
# web_environment:
220+
# - SOMEENV=somevalue
221+
# - SOMEOTHERENV=someothervalue
222+
223+
# no_project_mount: false
224+
# (Experimental) If true, DDEV will not mount the project into the web container;
225+
# the user is responsible for mounting it manually or via a script.
226+
# This is to enable experimentation with alternate file mounting strategies.
227+
# For advanced users only!
228+
229+
# bind_all_interfaces: false
230+
# If true, host ports will be bound on all network interfaces,
231+
# not the localhost interface only. This means that ports
232+
# will be available on the local network if the host firewall
233+
# allows it.
234+
235+
# default_container_timeout: 120
236+
# The default time that DDEV waits for all containers to become ready can be increased from
237+
# the default 120. This helps in importing huge databases, for example.
238+
239+
#web_extra_exposed_ports:
240+
#- name: nodejs
241+
# container_port: 3000
242+
# http_port: 2999
243+
# https_port: 3000
244+
#- name: something
245+
# container_port: 4000
246+
# https_port: 4000
247+
# http_port: 3999
248+
# Allows a set of extra ports to be exposed via ddev-router
249+
# Fill in all three fields even if you don’t intend to use the https_port!
250+
# If you don’t add https_port, then it defaults to 0 and ddev-router will fail to start.
251+
#
252+
# The port behavior on the ddev-webserver must be arranged separately, for example
253+
# using web_extra_daemons.
254+
# For example, with a web app on port 3000 inside the container, this config would
255+
# expose that web app on https://<project>.ddev.site:9999 and http://<project>.ddev.site:9998
256+
# web_extra_exposed_ports:
257+
# - name: myapp
258+
# container_port: 3000
259+
# http_port: 9998
260+
# https_port: 9999
261+
262+
#web_extra_daemons:
263+
#- name: "http-1"
264+
# command: "/var/www/html/node_modules/.bin/http-server -p 3000"
265+
# directory: /var/www/html
266+
#- name: "http-2"
267+
# command: "/var/www/html/node_modules/.bin/http-server /var/www/html/sub -p 3000"
268+
# directory: /var/www/html
269+
270+
# override_config: false
271+
# By default, config.*.yaml files are *merged* into the configuration
272+
# But this means that some things can't be overridden
273+
# For example, if you have 'use_dns_when_possible: true'' you can't override it with a merge
274+
# and you can't erase existing hooks or all environment variables.
275+
# However, with "override_config: true" in a particular config.*.yaml file,
276+
# 'use_dns_when_possible: false' can override the existing values, and
277+
# hooks:
278+
# post-start: []
279+
# or
280+
# web_environment: []
281+
# or
282+
# additional_hostnames: []
283+
# can have their intended affect. 'override_config' affects only behavior of the
284+
# config.*.yaml file it exists in.
285+
286+
# Many DDEV commands can be extended to run tasks before or after the
287+
# DDEV command is executed, for example "post-start", "post-import-db",
288+
# "pre-composer", "post-composer"
289+
# See https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/ for more
290+
# information on the commands that can be extended and the tasks you can define
291+
# for them. Example:
292+
#hooks:

.ddev/traefik/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
certs/*

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.ddev.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
APP_URL="https://laradev-react.ddev.site:8443"
2+
DB_HOST="db"
3+
DB_DATABASE="db"
4+
DB_USERNAME="db"
5+
DB_PASSWORD="db"
6+
VITE_DEV_URL="https://laradev-react.ddev.site"
7+
VITE_APP_PORT="8443"
8+
VITE_DEV_PORT="5179"

0 commit comments

Comments
 (0)