Hbler / user_CRUD_typeorm

An user CRUD in Node, Express and TypeScript with TypeORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possiveis problemas:

(TESTES) Conflito de portas entre o app e o jest:

Para resolver esse problema, é necessário criar um arquivo chamado server.ts e nele você configura todas as inicializações do seu projeto.

//Exemplo de um arquivo server.ts
import app from "./app";
import { AppDataSource } from "./data-source";

const init = async () => {
  const PORT = process.env.PORT || 3000;
  await AppDataSource.initialize();
  app.listen(PORT, () => {
    console.log(`App is running!`);
  });
}
init();

Fique a vontade para contribuir logo abaixo 🤓

About

An user CRUD in Node, Express and TypeScript with TypeORM


Languages

Language:TypeScript 99.5%Language:Shell 0.5%