GithubHelp home page GithubHelp logo

testepratico's Introduction

Instalação

Teste Prático de PHP para novos Colaboradores

Pré-requisito

  • Docker e docker-compose
  • Ambiente de desenvolvimento docker com Laradock.

Executando

  • Clonar repositório incluindo submódulos:

    git clone --recurse-submodules https://github.com/jonasdiel/testePratico.git

  • Acessar diretório do projeto:

    cd testePratico/

  • Copiar arquivo de configuração

    cp env_laradock laradock/.env

    cp .env.example .env

  • Executar containers:

    ./run

  • Instalar dependências

    docker exec -it testepratico_workspace_1 composer install

  • Gerar chave de segurança

    docker exec -it testepratico_workspace_1 php artisan key:generate

  • Executar migrations da base de dados

    docker exec -it testepratico_workspace_1 php artisan migrate

  • Inserir lista de especialidades com seeds

    docker exec -it testepratico_workspace_1 php artisan db:seed --class=Especialidades

  • Obter ip do contaner NGINX para informar na configuração docker inspect testepratico_nginx_1 | grep '"IPAddress": "'

  • Alterar arquivo .env e alterar APP_URL para o client API resolver internamente APP_URL=http://192.168.160.6

  • Para executar os testes da API

    docker exec -it testepratico_workspace_1 php artisan test

  • Acessando aplicação: http://localhost/

testepratico's People

Contributors

jonasdiel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.