- Bootstrap script for creating monorepo projects - FastAPI backend templates with uv, ruff, mypy, pytest - React frontend templates with TypeScript, ESLint, Prettier - Docker Compose setup with backend, frontend, and database - 9 development and CI scripts - Gitea Actions CI/CD workflows - Comprehensive documentation (8 files) - 45 template files for complete project structure - Automated verification script (all tests pass) - Based on coding-agent-rules standards
27 lines
566 B
Bash
Executable File
27 lines
566 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Reset database (WARNING: This will delete all data)
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/../../deploy"
|
|
|
|
echo "WARNING: This will delete all database data!"
|
|
read -p "Are you sure you want to continue? (yes/no): " confirm
|
|
|
|
if [ "$confirm" != "yes" ]; then
|
|
echo "Aborted."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Stopping database container..."
|
|
docker compose down database
|
|
|
|
echo "Removing database volume..."
|
|
docker volume rm $(basename $(pwd))_postgres-data 2>/dev/null || true
|
|
|
|
echo "Starting fresh database..."
|
|
docker compose up -d database
|
|
|
|
echo "Database reset complete"
|