Skip to content

Commit

Permalink
Refactor database logic and update Docker configurations (#43)
Browse files Browse the repository at this point in the history
Move database logic to a dedicated class and refactor Docker and
Composer configurations for improved development environment setup.
Update README.md for new instructions.

### Webs de referència (Webgrafia)
He utilitzat les següents webs per tenir alguna referència:
- https://docs.docker.com/guides/php/
- https://docs.docker.com/guides/pre-seeding/
- https://stackoverflow.com/questions/16314756/mvc-htaccess-rewrite
  • Loading branch information
0x1026 authored Nov 10, 2024
2 parents 7e54834 + 1fc8fda commit 5e9e095
Show file tree
Hide file tree
Showing 22 changed files with 1,835 additions and 136 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

### Composer ###
composer.phar
#! EDITED ↓
/src/vendor/
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
Expand Down
55 changes: 0 additions & 55 deletions .vscode/launch.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Aplicatiu web per a la gestió del manteniment d'arbrat urbà i periurbà.
2. **Arrencar l'entorn amb Docker:**
Un cop les dependències estiguin instal·lades, pots arrencar l'entorn de desenvolupament utilitzant Docker. Executa el següent comandament:
```bash
docker compose up
docker-compose up --build --watch --remove-orphans
```

Això crearà els contenidors necessaris per al projecte i posarà en marxa l'aplicació.
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
"type": "project",
"autoload": {
"psr-4": {
"App\\": "src/app"
"App\\": "app/"
}
},
"config": {
"vendor-dir": "src/vendor"
},
"authors": [
{
"name": "DAW Ies Montsià"
}
],
"require": {}
"require-dev": {
"phpunit/phpunit": "^11.4"
}
}
Loading

0 comments on commit 5e9e095

Please sign in to comment.