Giter VIP home page Giter VIP logo

hello-service's Introduction

Linha do tempo, primeiro serviço ^^/

npm init -y .gitignore README.md src/index.js: npm install dotenv --save / require('dotenv').config() //tentar fazer por fora depois var.env

configurando pino (logger e debug): npm install pino --save src/helper/logger.js

index.js: const pino = require('/pasta')

npm install cron --save const CronJob = require('cron').CronJob

const { sequelize } = require('./models/tabelaCampeao') sequelize.sync().then().catch()

src/models/tabelaCampeao.js

npm install sequelize --save npm install pg --save

postgress instalar local(sdds mongo atlas)

create database sever_db; \l \c sever_db; INSERT INTO public."TabelaCampeaos"("NOME", "LINE") VALUES ( 'Lux', 'Vamos iluminar isso aqui!'); \dt; \d public."TabelaCampeaos"; select * from public."TabelaCampeaos";

--job start-- src/services/carga

dockerfile .dockerignore git push --set-upstream origin master ///////////////////////////////

https://www.youtube.com/watch?v=Ft3F7wWA-x8&list=PLucm8g_ezqNoAkYKXN_zWupyH6hQCAwxY&index=6 cria db: create database sever_db Listar bancos disponíveis: \l Mudar para banco: \c sever_db; create user bob with password 'mypass'; drop database sever_db; create schema public; create table public."TabelaCampeao"( nome CHAR(15), line CHAR(20)); \d public."TabelaCampeaos"; \dt; \dt public."TabelaCampeaos"; delete --tabelaChampeaos;

hello-service's People

Contributors

stellablima avatar

Watchers

 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.