refactor: consolidate blockchain explorer into single app and update backup ignore patterns
- Remove standalone explorer-web app (README, HTML, package files) - Add /web endpoint to blockchain-explorer for web interface access - Update .gitignore to exclude application backup archives (*.tar.gz, *.zip) - Add backup documentation files to .gitignore (BACKUP_INDEX.md, README.md) - Consolidate explorer functionality into main blockchain-explorer application
This commit is contained in:
29
apps/wallet/scripts/setup_postgresql.sh
Normal file
29
apps/wallet/scripts/setup_postgresql.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "=== PostgreSQL Setup for AITBC Wallet Daemon ==="
|
||||
echo ""
|
||||
|
||||
# Create database and user
|
||||
echo "Creating wallet database..."
|
||||
sudo -u postgres psql -c "CREATE DATABASE aitbc_wallet;"
|
||||
sudo -u postgres psql -c "CREATE USER aitbc_user WITH PASSWORD 'aitbc_password';"
|
||||
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE aitbc_wallet TO aitbc_user;"
|
||||
|
||||
# Grant schema permissions
|
||||
sudo -u postgres psql -d aitbc_wallet -c 'ALTER SCHEMA public OWNER TO aitbc_user;'
|
||||
sudo -u postgres psql -d aitbc_wallet -c 'GRANT CREATE ON SCHEMA public TO aitbc_user;'
|
||||
|
||||
# Test connection
|
||||
echo "Testing connection..."
|
||||
sudo -u postgres psql -c "\l" | grep aitbc_wallet
|
||||
|
||||
echo ""
|
||||
echo "✅ PostgreSQL setup complete for Wallet Daemon!"
|
||||
echo ""
|
||||
echo "Connection details:"
|
||||
echo " Database: aitbc_wallet"
|
||||
echo " User: aitbc_user"
|
||||
echo " Host: localhost"
|
||||
echo " Port: 5432"
|
||||
echo ""
|
||||
echo "You can now run the migration script."
|
||||
Reference in New Issue
Block a user