From be753e18139d376dd3bc55f5d9bcae07d5f0aa35 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 5 Mar 2024 17:39:42 -0300 Subject: [PATCH 1/5] =?UTF-8?q?Instrucciones=20de=20instalaci=C3=B3n=20en?= =?UTF-8?q?=20README=20y=20cambios=20a=20.env.example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 44 +++++++++++++---------------- README.md | 80 +++++++++++++++++++++------------------------------- 2 files changed, 51 insertions(+), 73 deletions(-) diff --git a/.env.example b/.env.example index 2d7f02f..f79ae04 100644 --- a/.env.example +++ b/.env.example @@ -1,59 +1,53 @@ -APP_NAME=Laravel +APP_NAME=pedi3 APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack -LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=debug + +USERID=1000 DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_DATABASE=laravel -DB_USERNAME=root -DB_PASSWORD= +DB_HOST=db +DB_PORT_EXPOSED=3306 +DB_DATABASE=pedi3 +DB_USERNAME=pedi3 +DB_PASSWORD=pedi3 BROADCAST_DRIVER=log CACHE_DRIVER=file -FILESYSTEM_DISK=local QUEUE_CONNECTION=sync -SESSION_DRIVER=database +SESSION_DRIVER=file SESSION_LIFETIME=120 -MEMCACHED_HOST=127.0.0.1 - REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp -MAIL_HOST=mailpit -MAIL_PORT=1025 +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null -MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_ADDRESS=null MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= -AWS_USE_PATH_STYLE_ENDPOINT=false PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= -PUSHER_HOST= -PUSHER_PORT=443 -PUSHER_SCHEME=https PUSHER_APP_CLUSTER=mt1 -VITE_APP_NAME="${APP_NAME}" -VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -VITE_PUSHER_HOST="${PUSHER_HOST}" -VITE_PUSHER_PORT="${PUSHER_PORT}" -VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" -VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + +WEB_CLIENT_EMAIL=example@mail.com +WEB_CLIENT_NAME=web +WEB_CLIENT_PASS=pass +NGINX_PORT=8000 diff --git a/README.md b/README.md index 1a4c26b..068ad86 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,50 @@ -

Laravel Logo

+# Guía de instalación +1. **Copiar el archivo de configuración:** -

-Build Status -Total Downloads -Latest Stable Version -License -

+Copia el archivo .env.example a un nuevo archivo llamado .env: -## About Laravel +```bash +cp .env.example .env +``` -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +Abre el archivo .env y ajusta los valores según sea necesario, especialmente la configuración de la base de datos. -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). +2. **Crear la imagen del proyecto** -Laravel is accessible, powerful, and provides tools required for large, robust applications. +Ejecuta el siguiente comando para construir la imagen del proyecto utilizando Docker Compose: -## Learning Laravel +```bash +docker-compose up -d --build +``` -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. +3. **Instalar dependencias de Composer** -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. +Instala las dependencias definidas en composer.json utilizando Composer: -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. +```bash +docker-compose exec app composer install +``` -## Laravel Sponsors +4. **Generar la clave de la aplicación** -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). +Genera la clave de la aplicación con el siguiente comando: -### Premium Partners +```bash +docker-compose exec app php artisan key:generate +``` -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[WebReinvent](https://webreinvent.com/)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Jump24](https://jump24.co.uk)** -- **[Redberry](https://redberry.international/laravel/)** -- **[Active Logic](https://activelogic.com)** -- **[byte5](https://byte5.de)** -- **[OP.GG](https://op.gg)** +5. **Migrar y poblar la base de datos** -## Contributing +Ejecuta las migraciones y seeders para tener la base de datos actualizada: -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). +```bash +docker-compose exec app php artisan migrate --seed +``` -## Code of Conduct +6. **Instalar dependencias de npm** -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). +Instala las dependencias definidas en package.json utilizando npm: -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +```bash +docker-compose exec app npm install +``` From 818421bf691ea3ab14270dcfada4031aa12b48a0 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 5 Mar 2024 17:46:46 -0300 Subject: [PATCH 2/5] Agregado puerto a APP_URL --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index f79ae04..56d993b 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ APP_NAME=pedi3 APP_ENV=local APP_KEY= APP_DEBUG=true -APP_URL=http://localhost +APP_URL=http://localhost:8000 LOG_CHANNEL=stack From 45627cb460b921bdec57df2208e8e5db241236fc Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 5 Mar 2024 17:58:11 -0300 Subject: [PATCH 3/5] Detalles --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 068ad86..e33383a 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Guía de instalación 1. **Copiar el archivo de configuración:** -Copia el archivo .env.example a un nuevo archivo llamado .env: +Copiá el archivo .env.example a un nuevo archivo llamado .env: ```bash cp .env.example .env ``` -Abre el archivo .env y ajusta los valores según sea necesario, especialmente la configuración de la base de datos. +Abrí el archivo .env y ajustá los valores según sea necesario. 2. **Crear la imagen del proyecto** -Ejecuta el siguiente comando para construir la imagen del proyecto utilizando Docker Compose: +Ejecutá el siguiente comando para construir la imagen del proyecto con Docker Compose: ```bash docker-compose up -d --build @@ -19,7 +19,7 @@ # Guía de instalación 3. **Instalar dependencias de Composer** -Instala las dependencias definidas en composer.json utilizando Composer: +Instalá las dependencias definidas en composer.json usando Composer: ```bash docker-compose exec app composer install @@ -27,7 +27,7 @@ # Guía de instalación 4. **Generar la clave de la aplicación** -Genera la clave de la aplicación con el siguiente comando: +Generá la clave de la aplicación con el siguiente comando: ```bash docker-compose exec app php artisan key:generate @@ -35,7 +35,7 @@ # Guía de instalación 5. **Migrar y poblar la base de datos** -Ejecuta las migraciones y seeders para tener la base de datos actualizada: +Ejecutá las migraciones y seeders para tener la base de datos actualizada: ```bash docker-compose exec app php artisan migrate --seed @@ -43,8 +43,10 @@ # Guía de instalación 6. **Instalar dependencias de npm** -Instala las dependencias definidas en package.json utilizando npm: +Instalá las dependencias definidas en package.json utilizando npm: ```bash docker-compose exec app npm install ``` + +Listo! Ya está todo pronto, y la aplicación debería estar corriendo en http://localhost:8000 From 8ce2f76079ef367831c98df2d0bdabd239ccf125 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 5 Mar 2024 17:58:25 -0300 Subject: [PATCH 4/5] Ignorando la carpeta public --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7fe978f..46cbf51 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.phpunit.cache /node_modules +/public /public/build /public/hot /public/storage From 3fbe4844e84dd779670f86d9a120a4cabbc747c0 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 11 Mar 2024 20:02:09 -0300 Subject: [PATCH 5/5] re-agregadas cosas a .env.example --- .env.example | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.env.example b/.env.example index 56d993b..468f0b8 100644 --- a/.env.example +++ b/.env.example @@ -43,10 +43,20 @@ PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" +VITE_APP_NAME="${APP_NAME}" +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + WEB_CLIENT_EMAIL=example@mail.com WEB_CLIENT_NAME=web WEB_CLIENT_PASS=pass