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
This commit is contained in:
59
api/QUICK_FIX_SYNTAX.md
Normal file
59
api/QUICK_FIX_SYNTAX.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# ✅ 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:
|
||||
|
||||
```bash
|
||||
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:
|
||||
|
||||
```bash
|
||||
# 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:
|
||||
|
||||
```bash
|
||||
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. 🚀
|
||||
Reference in New Issue
Block a user