Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install Docker

    1. 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).

    2. After installation, restart your computer if required.

  2. .env setup

    1. Navigate to the src/backend directory in the repo and run one of the two commands below based on your OS

      1. [Mac] echo "DATABASE_URL=\"postgresql://postgres:docker@localhost:5432/nerpm?schema=public\"" >> .env

      2. [Windows] echo ni .env then Set-Content -Path .env 'DATABASE_URL="postgresql://postgres:docker@localhost:5432/nerpm?schema=public" > .env'

  3. 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):

    1. docker run --name finishline -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres

    2. docker exec -ti finishline psql -U postgres -c "CREATE DATABASE nerpm;"

  4. Go to your Docker desktop app and the container you just made should appear. If it says “running”, then everything is working!

...