kenken999's picture
test
1f074d8
raw
history blame
342 Bytes
#!/bin/bash
# Install dependencies
pip install -r requirements.txt
# Create a SQLite database
export DATABASE_URL=sqlite:///./sql_app.db
python -c "from sqlalchemy import create_engine; engine = create_engine('$DATABASE_URL'); Base.metadata.create_all(engine)"
# Run the FastAPI application
uvicorn app.main:app --host 0.0.0.0 --port 8000