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:
19
api/setup-db-commands.txt
Normal file
19
api/setup-db-commands.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# Run these commands to set up the database:
|
||||
|
||||
# Option 1: If you have sudo access
|
||||
sudo -u postgres psql << EOSQL
|
||||
CREATE DATABASE sankofa;
|
||||
ALTER USER postgres PASSWORD 'dev_sankofa_2024_secure';
|
||||
\q
|
||||
EOSQL
|
||||
|
||||
# Option 2: If you can connect as postgres user directly
|
||||
psql -U postgres << EOSQL
|
||||
CREATE DATABASE sankofa;
|
||||
ALTER USER postgres PASSWORD 'dev_sankofa_2024_secure';
|
||||
\q
|
||||
EOSQL
|
||||
|
||||
# Option 3: Using createdb command
|
||||
createdb -U postgres sankofa
|
||||
psql -U postgres -c "ALTER USER postgres PASSWORD 'dev_sankofa_2024_secure';"
|
||||
Reference in New Issue
Block a user