Giter VIP home page Giter VIP logo

chat's Introduction

NLW 5 BACK COM NODE

dependências

  • yarn init -y
  • yarn add express
  • yarn add @types/express -D
  • yarn add typescript -D // -D ambiente de desenvolvimento
  • yarn tsc --init
  • yarn add typeorm reflect-metadata
  • yarn add sqlite3
  • yarn add uuid
  • yarn add @types/uuid -D
  • yarn add socket.io // websocket
  • yarn add @types/socket.io -D
  • yarn add ejs
  • yarn add socket.io-client

tsconfig.json { "strict": false // verificação a mais, nao verifica em desenvolvimento }

  • yarn add ts-node-dev -D

"scripts": { "dev": "ts-node-dev --transpile-only --ignore-watch node_modules src/server.ts", "typeorm": "ts-node-dev node_modules/typeorm/cli.js" },

configurar um json para o typeorm - que trata do banco de dados

  • ormconfig.json

  • criando migrations yarn typeorm migration:create -n CreateSettings

  • rodar migration com a QueryRunner ( criação de tabelas ) yarn typeorm migration:run

tsconfig.json{ "strictPropertyInitialization": false, "experimentalDecorators": true, "emitDecoratorMetadata": true, }

chat's People

Contributors

wagnergonca avatar

Watchers

James Cloos avatar Wagner Terry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.