31 lines
567 B
Markdown
31 lines
567 B
Markdown
# Quick Setup
|
|
|
|
```bash
|
|
# Build the Docker image
|
|
docker build -t myapp .
|
|
|
|
# Run the container
|
|
docker run -p 8000:8000 myapp
|
|
```
|
|
# Clone the repository
|
|
# Create virtual environment
|
|
``python3 -m venv .venv``
|
|
|
|
# Activate virtual environment
|
|
# Linux/macOS:
|
|
```source .venv/bin/activate```
|
|
# Windows (cmd):
|
|
```.venv\Scripts\activate```
|
|
|
|
# Upgrade pip
|
|
```pip install --upgrade pip```
|
|
|
|
# Install dependencies
|
|
```pip install -r requirements.txt```
|
|
|
|
# Run migrations
|
|
```alembic upgrade head```
|
|
|
|
# Start the app
|
|
```uvicorn src:app --host 0.0.0.0 --port 8000 --log-level info```
|