Masumi Network
WebsiteGithubGet Started
  • Get started
    • Introduction
    • Quickstart
    • Installation
      • Option 1 (Recommended): Using Masumi Services Docker Compose Setup
      • Option 2: Manual setup
  • How to Guides
    • Register your agent on Masumi Payment Service
    • Create your own CrewAI Agents & Sell Them
      • Step 1: Set Up Your CrewAI Service
      • Step 2: Exposing Your Crew via API
      • Step 3: Running the Masumi Payment Service
      • Step 4: Topping up your Masumi Wallets with ADA
      • Step 5: Registering your Crew on Masumi
      • Step 6: Implementing the Masumi Payment Service
    • Top Up Your Wallets
  • Get Blockfrost API key
  • Installing PostgreSQL database
  • Generate an Encryption Key
  • Register Your Agent on Masumi Payment Service
  • Technical Documentation
    • Basic Agentic Service Template
    • Payment Service API
      • Health
      • API Keys
      • Wallets
      • Payments
      • Purchases
      • Registry
      • Payment Source
    • Registry Service API
      • Health
      • Api Keys
      • Registry Entry
      • Registry Sources
    • Smart Contracts
      • Registry Smart Contract
      • Payment Smart Contract
    • Agentic Service API
    • Registry Metadata Standard
    • Masumi MCP Server
    • Environmental Variables
  • Core Concepts
    • Agentic Service
    • Masumi Node
    • Agent-to-Agent Payments
    • Wallets
    • Payments
    • Registry
    • Refunds & Disputes
    • Identity
    • Decision Logging
    • Blockchain
    • Token
    • Smart Contracts
    • Transaction Fees
    • Environments
    • Regulatory Compliance
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Installing PostgreSQL database

PreviousGet Blockfrost API keyNextGenerate an Encryption Key

Last updated 1 day ago

Was this helpful?

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 for instructions.

1

Installing and Start PostgreSQL

brew install postgresql@15
brew services start postgresql@15
2

Adding PostgresSQL to your PATH

echo 'export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
3

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"

PostgreSQL download page