|
5 | 5 | - [Core Features](#core-features) |
6 | 6 | - [Technology Stack and Features](#technology-stack-and-features) |
7 | 7 | - [Planned Features](#planned-features) |
| 8 | + - [Getting Started](#getting-started) |
| 9 | + - [Development](#development) |
| 10 | + - [VSCode Devcontainer](#vscode-devcontainer) |
| 11 | + - [Without VSCode Devcontainer](#without-vscode-devcontainer) |
| 12 | + - [Refactored Markdown Files](#refactored-markdown-files) |
8 | 13 | <!--toc:end--> |
9 | 14 |
|
10 | 15 | ## Core Features |
|
39 | 44 | - :dollar: Deploy live demo to [](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) |
40 | 45 | - Provision with [](https://github.com/hashicorp/terraform) IaC |
41 | 46 | - Push built images to ECR and Dockerhub |
| 47 | + |
| 48 | +## Getting Started |
| 49 | + |
| 50 | +Build community youtube MCP image with: |
| 51 | + |
| 52 | +```bash |
| 53 | +./community/youtube/build.sh |
| 54 | +``` |
| 55 | + |
| 56 | +> [!TIP] |
| 57 | +> Instead of cloning or submoduling the repository locally, then building the image, this script builds the Docker image inside a temporary Docker-in-Docker container. This approach avoids polluting your local environment with throwaway files by cleaning up everything once the container exits. |
| 58 | +
|
| 59 | +Then build the other images with: |
| 60 | + |
| 61 | +```bash |
| 62 | +docker compose -f compose-dev.yaml build |
| 63 | +``` |
| 64 | + |
| 65 | +Copy environment file: |
| 66 | + |
| 67 | +```bash |
| 68 | +cp .env.sample .env |
| 69 | +``` |
| 70 | + |
| 71 | +Add your following API keys and value to the respective file: `./envs/backend.env`, `./envs/youtube.env` and `.env`. |
| 72 | + |
| 73 | +```bash |
| 74 | +OPENAI_API_KEY=sk-proj-... |
| 75 | +POSTGRES_DSN=postgresql://postgres... |
| 76 | +YOUTUBE_API_KEY=... |
| 77 | +``` |
| 78 | + |
| 79 | +Set environment variables in shell: (compatible with `bash` and `zsh`) |
| 80 | + |
| 81 | +```bash |
| 82 | +set -a; for env_file in ./envs/*; do source $env_file; done; set +a |
| 83 | +``` |
| 84 | + |
| 85 | +Start production containers: |
| 86 | + |
| 87 | +```bash |
| 88 | +docker compose up -d |
| 89 | +``` |
| 90 | + |
| 91 | +## Development |
| 92 | + |
| 93 | +### VSCode Devcontainer |
| 94 | + |
| 95 | +> [!WARNING] |
| 96 | +> Only replace the following if you plan to start debugger for FastAPI server in VSCode. |
| 97 | +
|
| 98 | +Replace `./compose-dev.yaml` entrypoint to allow debugging FastAPI server: |
| 99 | + |
| 100 | +```yaml |
| 101 | +# ... |
| 102 | + api: |
| 103 | + # ... |
| 104 | + # entrypoint: uv run fastapi run api/main.py --root-path=/api --reload |
| 105 | + # replace above with: |
| 106 | + entrypoint: bash -c "sleep infinity" |
| 107 | + # ... |
| 108 | +``` |
| 109 | + |
| 110 | +```bash |
| 111 | +code --no-sandbox . |
| 112 | +``` |
| 113 | + |
| 114 | +Press `F1` and type `Dev Containers: Rebuild and Reopen in Container` to open containerized environment with IntelliSense and Debugger for FastAPI. |
| 115 | + |
| 116 | +### Without VSCode Devcontainer |
| 117 | + |
| 118 | +Run development environment with: |
| 119 | + |
| 120 | +```bash |
| 121 | +docker compose -f compose-dev.yaml up -d |
| 122 | +``` |
| 123 | + |
| 124 | +## Refactored Markdown Files |
| 125 | + |
| 126 | +The following markdown files provide additional details on other features: |
| 127 | + |
| 128 | +- [`./docs/mcp.md`](./docs/mcp.md) |
| 129 | +- [`./docs/supabase.md`](./docs/supabase.md) |
0 commit comments