Files
Sankofa/api/QUICK_FIX_SYNTAX.md
T
defiQUG 8436e22f4c API: Phoenix railing proxy, API key auth for /api/v1/*, schema export, docs, migrations, tests
- Phoenix API Railing: proxy to PHOENIX_RAILING_URL, tenant me routes
- Tenant-auth: X-API-Key support for /api/v1/* (api_keys table)
- Migration 026: api_keys table; 025 sovereign stack marketplace
- GET /graphql/schema, GET /graphql-playground, api/docs OpenAPI
- Integration tests: phoenix-railing.test.ts
- docs/api/API_VERSIONING: /api/v1/ railing alignment
- docs/phoenix/PORTAL_RAILING_WIRING

Made-with: Cursor
2026-03-11 12:57:41 -07:00

1.2 KiB

✅ Syntax Error Fixed!

The syntax error in ONE_COMMAND_SETUP.sh has been fixed. The script is now ready to run.

Run the Setup

The script needs your sudo password to create the database. Run:

cd /home/intlc/projects/Sankofa/api
./ONE_COMMAND_SETUP.sh

When prompted, enter your sudo password.

What the Script Does

  1. ✅ Configures .env file (already done)
  2. ⏳ Creates sankofa database (needs sudo)
  3. ⏳ Sets PostgreSQL password (needs sudo)
  4. ⏳ Runs migrations
  5. ⏳ Seeds all 9 services
  6. ⏳ Verifies setup

Alternative: Manual Database Setup

If you prefer to set up the database manually first:

# 1. Create database and set password (one command)
sudo -u postgres psql << 'EOSQL'
CREATE DATABASE sankofa;
ALTER USER postgres PASSWORD 'dev_sankofa_2024_secure';
\q
EOSQL

# 2. Then run automated setup (no sudo needed)
cd /home/intlc/projects/Sankofa/api
./RUN_ME.sh

After Setup

Once complete, verify:

pnpm verify:sovereign-stack

You should see:

✅ Phoenix publisher found: Phoenix Cloud Services
✅ Found 9 Phoenix services
✅ All 9 expected services found!

The script is fixed and ready! Just run it and enter your sudo password when prompted. 🚀