Skip to content

Nesio88/microservico_client

Repository files navigation

Laravel Microservices

Instalação

Clonar Projeto

git clone https://github.com/Nesio88/microservico_client.git

Criar o Arquivo .env

cp .env.example .env

Atualizar as variáveis de ambiente do arquivo .env

APP_NAME=Laravel
APP_URL=http://localhost:8000

DB_CONNECTION=mysql
DB_HOST=db_micro_client
DB_PORT=3306
DB_DATABASE=micro_client
DB_USERNAME=root
DB_PASSWORD=root

MAIL_MAILER=smtp
MAIL_HOST=mailcatcher_micro_client
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=contato@snsistemas.com.br
MAIL_FROM_NAME="${APP_NAME}"
 

Subir os containers do projeto

docker-compose up -d

Acessar o container

docker-compose exec micro_client bash

Instalar as dependências do projeto

composer install

Gerar a key do projeto Laravel

php artisan key:generate

Rodar os testes

php artisan test

Acessar o projeto http://localhost:8000