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
Iniciar package.json: | |
yarn init -y | |
Iniciar tsconfig.json: | |
yarn tsc --init | |
Adicionar e testar lib cors (Permite que aplicações front-end acessem suas rotas): | |
// Adicionar cors | |
yarn add cors; | |
// Adicionar tipagens do cors |
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 app react: | |
yarn create react-app Letmeask --template typescript; | |
(nome, opção para incluir template, utilizando typescript) | |
Adicionar firebase ao app: | |
yarn add firebase; | |
Adicionar sass na versão 5.0 (Funções adicionais ao css): | |
Obs: VERSÃO 6 NÃO É SUPORTADA PELO create react-app: | |
Obs2: ARQUIVOS QUE USARÃO O SASS, COM EXTENSÃO .scss: |