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…
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.