docker COMANDO CREAR postgres-db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| db: | |
| container_name: postgres_database | |
| image: postgres:16.3 | |
| volumes: | |
| - ./postgres:/var/lib/postgresql/data | |
| environment: | |
| - POSTGRES_PASSWORD=123456 | |
| restart: always | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { createContext } from 'react'; | |
| import { useSocket } from '../hooks/useSocket' | |
| export const SocketContext = createContext(); | |
| export const SocketProvider = ({ children }) => { | |
| const { socket, online } = useSocket('http://localhost:8080'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MONGO_USERNAME=strider | |
| MONGO_PASSWORD=123456789 | |
| MONGO_DB_NAME=pokemonDB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| db: | |
| container_name: postgres_database | |
| image: postgres:15.1 | |
| volumes: | |
| # - postgres-db:/var/lib/postgresql/data # ejemplo | |
| - ./postgres:/var/lib/postgresql/data | |
| environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpService, Injectable, Logger } from '@nestjs/common'; | |
| import { InjectModel } from '@nestjs/sequelize'; | |
| import { ReadStream } from 'fs'; | |
| import { Sequelize } from 'sequelize-typescript'; | |
| import * as xlsx from 'xlsx'; | |
| import { WorkBook, WorkSheet } from 'xlsx'; | |
| import { ArquivoImportacao } from './dto/arquivo-importacao.dto'; | |
| @Injectable() | |
| export class ImportacaoProcessosService { |
You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓