OBS: Necessary install Docker(Linux) or Docker Setup(Windows)
Replace the locations where it is: POSTGRES_USER,POSTGRES_PASSWORD, POSTGRES_DB with the values defined in your .env fileTo create network:
Execute this comand in terminal(Linux) or Terminal Docker Setup(Windows):
sudo docker network create postgres-network To create container:
Execute this comand in terminal(Linux) or Terminal Docker Setup(Windows):
docker run --name projeto --network postgres-network -p 5432:5432 -e POSTGRES_PASSWORD= POSTGRES_PASSWORD -e POSTGRES_USER= POSTGRES_USER -e POSTGRES_DB= POSTGRES_DB -d postgis/postgisPOSTGRES_USER = usuario
POSTGRES_PASSWORD = senha
POSTGRES_HOST = localhost
POSTGRES_PORT = 5432
POSTGRES_DB = bancoTo install dependencies:
npm installTo run:
npm run dev