Initial commit: Sistema Autoparts DB
- Base de datos SQLite con información de vehículos - Dashboard web con Flask y Bootstrap - Scripts de web scraping para RockAuto - Interfaz CLI para consultas - Documentación completa del proyecto Incluye: - 12 marcas de vehículos - 10,923 modelos - 10,919 especificaciones de motores - 12,075 combinaciones modelo-año-motor
This commit is contained in:
29
vehicle_database/setup.sh
Executable file
29
vehicle_database/setup.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Setup script for Vehicle Database
|
||||
|
||||
echo "Vehicle Database Setup"
|
||||
echo "======================"
|
||||
|
||||
# Check if Python3 is available
|
||||
if ! command -v python3 &> /dev/null; then
|
||||
echo "Python3 is required but not installed. Please install Python3 first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Python3 is available."
|
||||
|
||||
# Check if the database already exists
|
||||
if [ -f "vehicle_database.db" ]; then
|
||||
echo "Database already exists."
|
||||
else
|
||||
echo "Creating new database with sample data..."
|
||||
python3 scripts/database_manager.py
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Setup complete! Available scripts:"
|
||||
echo "1. Query Interface: python3 scripts/query_interface.py"
|
||||
echo "2. Database Manager: python3 scripts/database_manager.py"
|
||||
echo "3. CSV Importer: python3 scripts/csv_importer.py"
|
||||
echo ""
|
||||
echo "To start querying the database, run: python3 scripts/query_interface.py"
|
||||
Reference in New Issue
Block a user