Installing PostgreSQL Database
How to install and configure PostgreSQL database for Masumi
If you don't have a PostgreSQL database available here a few setups to set it up on a Mac. For other systems see the PostgreSQL download page for instructions.
Installing and Start PostgreSQL
brew install postgresql@15
brew services start postgresql@15
Adding PostgresSQL to your PATH
echo 'export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
Creating a Masumi database
psql postgres
create database masumi_payment
\q
Make sure to configure the DATABASE_URL variable in the .env file accordingly. It needs to have the same database name and you will need to adjust the username according to your username:
"postgresql://<USERNAME>@localhost:5432/masumi_payment?schema=public"