In additon to the Postgres installation, the dbmate CLI is expected to be found in PATH and the postgrest binary is expected to be installed into the server/ subdirectory.
cd server
openssl rand -base64 32 >> .jwtsecret
cd server
psql -U postgres "CREATE DATABASE flutter_todomvc"
PGUSER=postgres ./dbmate.sh migrate
cd server
psql -U postgres -d flutter_todomvc -f ./seed-development.sql
brew install postgrest
ln -s `which postgrest`
cd server
wget https://github.com/PostgREST/postgrest/releases/download/v11.2.2/postgrest-v11.2.2-linux-static-x64.tar.xz
tar -xJf postgrest-v11.2.2-linux-static-x64.tar.xz
cd server
PGUSER=postgres ./pgrest.sh