Skip to content

Instantly share code, notes, and snippets.

@deyvisonborges
Created July 14, 2019 23:56
Show Gist options
  • Save deyvisonborges/a0e1c713b592afd06f5b40ccb6fe6d35 to your computer and use it in GitHub Desktop.
Save deyvisonborges/a0e1c713b592afd06f5b40ccb6fe6d35 to your computer and use it in GitHub Desktop.

Guia prático pra instalação do TypeScript e do TypeORM

  1. instalando o ts-node pra rodar .ts no terminal sudo npm i -g ts-node

  2. Instalando o tyorm sudo npm i -g typeorm

  3. Verificando a versão do typeorm typeorm -v

  4. Iniciando e criando um projeto typeorm typeorm init --name nome_da_minha_pasta --express mysql

  5. entrando na pasta que eu criei cd nome_da_minha_aplicacao

  6. abrindo com o vscode code .; exit

  7. iniciando meu servico mysql sudo service mysql start

  8. rodando minha aplicação npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment