This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table if not exists banco ( | |
numero integer not NULL, | |
nome varchar(50), | |
ativo boolean not null default TRUE, | |
data_criacao timestamp not null default current_timestamp, | |
primary key (numero) | |
); | |
create table if not exists agencia ( | |
banco_numero integer not null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Serviços Web | |
- São soluções para aplicações se comunicarem independente | |
de linguagem, softwares e hardwares | |
- XML) protocolo HTTP por URL | |
- API's são serviços web por meio do HTTP | |
BD X -> Aplicação X | |
BD Y -> Aplicação Y | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="estado" name="estado"> | |
<option value="AC">Acre</option> | |
<option value="AL">Alagoas</option> | |
<option value="AP">Amapá</option> | |
<option value="AM">Amazonas</option> | |
<option value="BA">Bahia</option> | |
<option value="CE">Ceará</option> | |
<option value="DF">Distrito Federal</option> | |
<option value="ES">Espírito Santo</option> | |
<option value="GO">Goiás</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function validator(array $data) | |
{ | |
return Validator::make($data, [ | |
$email = $data['email']; | |
$emailfakes = ['naver.com','mailnator.com','nwytg.net','yopmail.com']; | |
$validator = Validator::make($data, [ | |
'name' => 'required|string|max:255', | |
'email' => 'required|string|email|max:255|unique:users', | |
'password' => 'required|string|min:6|confirmed', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--criar usuario | |
composer require laravel/ui | |
php artisan ui:auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• npm install nome_do_módulo: instala um módulo no projeto. | |
• npm install -g nome_do_módulo: instala um módulo global. | |
• npm install nome_do_módulo --save: instala o módulo no projeto, | |
atualizando o package.json na lista de dependências. | |
• npm list: lista todos os módulos do projeto. | |
• npm list -g: lista todos os módulos globais. | |
• npm remove nome_do_módulo: desinstala um módulo do projeto. | |
• npm remove -g nome_do_módulo: desinstala um módulo global. | |
• npm update nome_do_módulo: atualiza a versão do módulo. | |
• npm update 0g nome_do_módulo: atualiza a versão do módulo global. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g nodemon | |
npm install --save-dev nodemon | |
npm config get prefix | |
set PATH=%PATH%;C:\Users\"Aqui seu usuario"\AppData\Roaming\npm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
criar um json | |
- npm init -y | |
instalar as dependecias | |
- npm i | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*cria classe e controllers | |
- php artisan make:controller clienteController --resource | |
*migrate recarregar new | |
- php artisan migrate:fresh --seed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arquitetura | |
- Docker ENGINE | |
- Docker CLIENT | |
- Docker OBJECTS | |
- Docker RESGISTRY | |
Instalação - Docker ENGINE | |
- DESKTOP: Mac OS, Windows 10 | |
- SERVER: Varius Linux Distributions e Windows Server 2016 | |
- CLOUD: Amazon Web Services, Google Compute Plataform ... |