...
Install Docker
Download Docker Desktop for your OS and install it following the default steps (there are a few weird steps for Windows so make sure to do those).
After installation, restart your computer if required.
.env setup
Navigate to the
src/backend
directory in the repo and run one of the two commands below based on your OS[Mac]
echo "DATABASE_URL=\"postgresql://postgres:docker@localhost:5432/nerpm?schema=public\"" >> .env
[Windows]
echo ni .env
thenSet-Content -Path .env 'DATABASE_URL="postgresql://postgres:docker@localhost:5432/nerpm?schema=public" > .env'
Run the following two commands in your CLI (note - if you are already running Postgres from the old manual installation, you must stop it first):
docker run --name finishline -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
docker exec -ti finishline psql -U postgres -c "CREATE DATABASE nerpm;"
Go to your Docker desktop app and the container you just made should appear. If it says “running”, then everything is working!
...