Urgent.News

What's breaking now, across thousands of outlets.

Tech

Part 2: Solving the PicPay Backend Technical Challenge

Iniciando o projeto. Pra iniciar o projeto, use o comando npm init -y Por que usaremos o docker para o banco? Ao inves de instalar o postgres na nossa maquina(é um inferno instalar isso), a gente subimos ele pra dentro de um container , um ambiente isolado, facil de criar e destruir, e o melhor, ja vem tudo configurado kaka. O arquivo que vamos criar é o docker-compose.yml Esse arquivo vai…

Translated from Portuguese Read in Portuguese

A project is being initiated using Docker for the database. Instead of installing Postgres on the local machine, it will be run inside a container. A `docker-compose.yml` file is created to describe the services to be run, currently only the Postgres database. The file defines the Postgres image, environment variables, port, and volume to persist data. The command `docker compose up -d` is used to start the services in detached mode.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Leetcode 41 : First Missing Positive Integer

Question : Given an unsorted integer array, find the smallest missing positive integer. Example : Input: [1,2,0] Output: 3 Input: [3,4,-1,1] Output: 2 Input: [7,8,9,11,12] Output: 1 Idea : In 1st…

More from Sunday 23 August →