...
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 add a .env file here via the commandni .env
[Windows] ortouch .env
[Mac] in the CLI or create the new file manually in your File Explorer or IDE (we use VSCode - more on that later). Paste the following line into the .env file: 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 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!
...