try {
await funcao1
funcao2
} catch (err) {
funcao3(err)
- Generate .editorconfig
yarn add eslint -D
yarn eslint --init
e criar as configurações (Air BnB)- Remover package-lock e rodar um
yarn
para organizar dependências - Adicionar outras dependências:
yarn add prettier eslint-config-prettier eslint-plugin-prettier babel-eslint -D
- Acrescentar configurações do ESlint
- Editar configurações do Prettier
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
cd /home/<user>/ | |
sudo apt-get install unzip | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip sdk-tools-linux-4333796.zip -d Android | |
rm sdk-tools-linux-4333796.zip | |
sudo apt-get install -y lib32z1 openjdk-8-jdk | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=$PATH:$JAVA_HOME/bin | |
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
cd Android/tools/bin |
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
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=$PATH:$JAVA_HOME/bin | |
export ANDROID_HOME=/home/gusflopes/Android | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/platform-toolsexport DOCKER_HOST=tcp://localhost:2375 |
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
// import Account from '../../app/Models/Account' | |
import test from 'japa' | |
import {join} from 'path' | |
import supertest from 'supertest' | |
import {createServer} from 'http' | |
import {Filesystem} from '@poppinss/dev-utils' | |
import 'reflect-metadata' | |
import { Ioc } from '@adonisjs/fold' | |
import { Application } from '@adonisjs/application/build/standalone' | |
import {HealthCheck} from '@adonisjs/core/build/src/HealthCheck' |
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
'use strict' | |
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ | |
const Model = use('Model') | |
class ExampleModel extends Model { | |
/** | |
* Add traits | |
*/ | |
static boot () { |
We can pass this Env File to debug Adonis:
LOG_LEVEL=trace
To show the SQL Queries we can use this setting:
// AppProvider.ts
public async ready () {
// App is ready
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
## Estrutura de Dados para gerar o arquivo da DMED para Prestador de Serviço de Saúde | |
Utilizar a estrutura abaixo. | |
Verificar se existe algum detalhe a mais para os dependentes | |
** ATENÇÃO: Os CPFS devem estar em ordem alfabética, em seguida pela data de nascimento ** | |
** Os campos podem ter preenchimento Fixo ou Variável, variando se precisa colocar ou não espaços ** | |
Confirmar na documentação antes de finalizar | |
### DMED | |
Dmed|ano-dec|ano-base|S/N||| |
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
## Chamadas à API | |
Endereço do servidor atual: http://159.223.96.204:3333/health | |
### Fluxo de Autenticação | |
1. Criar usuário chamando a rota POST /auth/register | |
2. Fazer login chamando a rota POST /auth/login (email, password) | |
3. Criar "Tenant" chamando a rota POST /auth/tenants (name) |
OlderNewer