Open JeanCarlosDelai opened 2 months ago
1 - Iniciar projeto node: npm init -y 2 - Instalar typescript e ts-node-dev: npm install typescript ts-node @types/node --save-dev 3 - Iniciar o tsconfig: npx tsc --init 4 - Ajustar configurações do tsconfig 5 - Criar arquivo .gitignore 6 - Instalar typeORM 7 - Configurar arquivo do typeORM 8 - Instalar cors/express: npm i cors express 9 - Instalar pacotes typescript do cors/express: npm i -D @types/express @types/cors 10 - Rodar comando apra gerar migration: npm run typeorm migration:create -n CreateUserTable 11 - Instalar sqlite: npm install sqlite3 12 - Alterar migration 13 - Rodar migration: npm run typeorm migration:run 14 - Configurar eslint e prettier: npm i prettier eslint eslint-config-prettier eslint-plugin-prettier -D
Iniciar o projeto