git clone https://github.com/ConsigueVentas/consigueventas_comercial_frontend.git
Branch
dev
.
git clone --single-branch -b dev https://github.com/ConsigueVentas/consigueventas_comercial_frontend.git
cd consigueventas_comercial_frontend
- Puedes ver las rama en la que te encuentras en cada instante con el comando:
git branch
. - Para cambiar de rama
git checkout dev
, mas info click aqui.
He instalamos los paquetes de node
npm install
Levantamos nuestro entorno
npm run start o yarn start
Instalacion de PHP
brew install php
- Version details
which php
For Windows PHP
Install Composer
comandos que encontre en su propia pagina de composer.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Verificamos
composer --version
Composer version 2.3.7 2022-06-06 16:43:28
Ejecuar este script o query. mysql workbench
Un script como el de abajo: de la rama developmet
drop database if exists dbdepcomercial;
create database dbdepcomercial;
use dbdepcomercial;
set sql_mode=PIPES_AS_CONCAT;
.
.
.
.
- Y se crea una base de datos localmente llamada
dbdepcomercial
Laravel backend (Laravel ^7.0)
git clone https://github.com/ConsigueVentas/consigueventas_comercial_backend.git
cd consigueventas_comercial_backend
git checkout development
- o directo
git clone --single-branch -b development https://github.com/ConsigueVentas/consigueventas_comercial_backend.git
- cambiar nombre
.env.example
a.env
. composer install
npm install
(do not run in docker container)- edit database in .env file
APP_URL=YOUR_APP_URL . DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=
php artisan key:generate
-
php artisan migrate:fresh --seed or php artisan migrate php artisan db:seed
php artisan storage:link
php artisan serve
@davquipe 👍 This gist looks great, it's ready to use! 🤙
Here is a simple flow chart:
graph TD;
MAIN-->DEV;
MAIN-->LEE;
Here is a simple flow chart:
graph TD;
MAIN-->DEVEVELOPMENT;
MAIN-->CHAVEZ;
MAIN-->TEMPORAL;
- step1
composer require tymon/jwt-auth --ignore-platform-reqs
- step2
php artisan jwt:secret
- step3
php artisan serve