Skip to content

Commit

Permalink
* dev : Se agrega más screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
maximovj committed Dec 4, 2024
1 parent c44b13c commit f2c2708
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 8 deletions.
42 changes: 36 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ Sitio de servicio Angular 18.x: [http://192.168.33.99:4200](http://192.168.33.99

Sitio de servicio SpringBoot 3.x: [http://192.168.33.99:5800](http://192.168.33.99:5800)

Sitio de servicio Mailpit: [http://192.168.33.99:8025](http://192.168.33.99:8025)

<br>

**NOTA:** Si no se está usando Vagrant como máquina virtual es necesario cambiar la dirección IP (`192.168.33.99`) de la caja de Vagrant
Expand All @@ -133,25 +135,47 @@ por `localhost`, en archivos de Dockerfile y Docker-compose.
Ejecuta el siguiente comando, desde la terminal.

```shell
$ docker-compose up --build
$ cd workspace
```

**Paso 2)** Accerder al servicio docker-compose de Laravel 11.x para.
**Paso 2)** Convetir el achivo `setup.sh` en un archivo ejecutable o script de linux y ejecutarló.

Además de crear variable de entorno, instalar nodejs, y crear alias para linux

Ejecuta el siguiente comando, desde la terminal.

```shell
$ docker-compose exec service_laravel /bin/bash
$ dos2unix ./setup.sh && ./setup.sh && source ~/.bashrc
```

**Paso 3)** Dentro del servicio docker-compose de Laravel 11.x para ejecutar seeders.
**Paso 3)** Construir todos los servicios de docker-compose

Ejecuta el siguiente comando, desde la terminal.
Se construye la imagen, contenedor y ejecuta cada servicio que compone docker-compose

```shell
$ php artisan db:seed --class=DatabaseSeeder
$ doc-again
```

**Paso 4)** Comienza a probar el proyecto

Felicidades ya puedes acceder a los sitios del proyecto, que son:

- Sitio de servicio Laravel 11.x: [http://192.168.33.99:8000](http://192.168.33.99:8000)

usuario: admin@admin.com

contraseña: password

- Sitio de servicio Angular 18.x: [http://192.168.33.99:4200](http://192.168.33.99:4200)

usuario: victor.maximo@example.com

contraseña: password

- Sitio de servicio SpringBoot 3.x: [http://192.168.33.99:5800](http://192.168.33.99:5800)

- Sitio de servicio Mailpit: [http://192.168.33.99:8025](http://192.168.33.99:8025)

<br>

# Vista previas
Expand All @@ -177,3 +201,9 @@ $ php artisan db:seed --class=DatabaseSeeder
![preview10.jpg](/screenshots/preview_10.jpg)

![preview11.jpg](/screenshots/preview_11.jpg)

![preview11.jpg](/screenshots/preview_12.jpg)

![preview11.jpg](/screenshots/preview_13.jpg)

![preview11.jpg](/screenshots/preview_14.jpg)
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Vagrant.configure("2") do |config|
# *OJO* : Corre solo una vez usando `vagrant up`
config.vm.provision "install-docker",
type: "docker",
images: ["mysql:5.7", "maven:3.6.3-openjdk-17-slim", "shinsenter/laravel:php8.2-alpine", "node:20.11.1-alpine"]
images: ["mysql:5.7", "maven:3.6.3-openjdk-17-slim", "shinsenter/laravel:php8.2-alpine", "node:20.11.1-alpine", "axllent/mailpit"]

#config.vm.provider "vmware_fusion" do |v|
# v.vmx["vhv.enable"] = "TRUE"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ services:
php artisan cache:clear &&
php artisan view:clear &&
php artisan route:clear &&
php artisan db:seed --class=DatabaseSeeder &&
nginx -g 'daemon off;'
"
depends_on:
Expand Down
Binary file added screenshots/preview_12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/preview_13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/preview_14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ echo ' ' >> /home/vagrant/.bashrc
echo '# Creando alias para docker-compose y docker' >> /home/vagrant/.bashrc
echo 'alias doc=docker-compose' >> /home/vagrant/.bashrc
echo 'alias doc-rm="docker-compose stop && docker-compose rm --force"' >> /home/vagrant/.bashrc
echo 'alias doc-again="docker-compose stop && docker-compose rm --force && docker-compose build && docker-compose up"' >> /home/vagrant/.bashrc
echo 'alias doc-ps="docker-compose ps --all"' >> /home/vagrant/.bashrc
echo 'alias doc-laravel="docker-compose exec service_laravel /bin/bash"' >> /home/vagrant/.bashrc
echo 'alias doc-logs="docker-compose logs"' >> /home/vagrant/.bashrc
echo 'alias doc-down="docker-compose stop && docker-compose rm --force"' >> /home/vagrant/.bashrc
echo 'alias doc-up="docker-compose stop && docker-compose rm --force && docker-compose build && docker-compose up"' >> /home/vagrant/.bashrc
echo 'alias docker-ps-clean="docker container prune -f"' >> /home/vagrant/.bashrc
echo 'alias docker-images-clean="docker rmi $(docker images -f "dangling=true" -q)"' >> /home/vagrant/.bashrc
echo ' ' >> /home/vagrant/.bashrc
Expand Down

0 comments on commit f2c2708

Please sign in to comment.