File size: 342 Bytes
0f43f8a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/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