{"id":29486396,"url":"https://github.com/aashishtimalsina/fastapi-ai-edu-tools","last_synced_at":"2026-05-05T09:31:22.702Z","repository":{"id":304599784,"uuid":"1019282099","full_name":"aashishtimalsina/fastapi-ai-edu-tools","owner":"aashishtimalsina","description":"A FastAPI-based backend application integrating OpenAI's GPT to build AI-powered educational tools. Includes user management, prompt-based AI responses, modular structure, and scalable architecture for EdTech platforms.","archived":false,"fork":false,"pushed_at":"2025-07-14T05:13:06.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T07:35:21.534Z","etag":null,"topics":["ai-tools","e-learning","edtech","fastapi","gpt","langchain","llm","openai","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aashishtimalsina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-14T05:08:03.000Z","updated_at":"2025-07-14T05:13:09.000Z","dependencies_parsed_at":"2025-07-14T07:47:05.427Z","dependency_job_id":null,"html_url":"https://github.com/aashishtimalsina/fastapi-ai-edu-tools","commit_stats":null,"previous_names":["aashishtimalsina/fastapi-ai-edu-tools"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aashishtimalsina/fastapi-ai-edu-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashishtimalsina%2Ffastapi-ai-edu-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashishtimalsina%2Ffastapi-ai-edu-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashishtimalsina%2Ffastapi-ai-edu-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashishtimalsina%2Ffastapi-ai-edu-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aashishtimalsina","download_url":"https://codeload.github.com/aashishtimalsina/fastapi-ai-edu-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashishtimalsina%2Ffastapi-ai-edu-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265419611,"owners_count":23761846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","e-learning","edtech","fastapi","gpt","langchain","llm","openai","python"],"created_at":"2025-07-15T08:00:39.269Z","updated_at":"2026-05-05T09:31:22.640Z","avatar_url":"https://github.com/aashishtimalsina.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Google AI Edu Tools 🎓🤖\n\nA FastAPI-based backend integrating Google AI Studio's Gemini APIs to power AI-driven educational tools and services. This project is designed to be the backend foundation for EdTech platforms that require dynamic content generation, Q\u0026A bots, and interactive AI-based features.\n\n---\n\n## 🚀 Features\n\n- ✨ AI-powered Q\u0026A endpoint using Google AI Studio (Gemini 1.5 Flash)\n- 👤 User creation and management\n- ⚙️ Modular and clean project structure\n- 📡 RESTful API with FastAPI\n- 🧠 Easily extensible to other AI models\n- 💾 SQLite with SQLAlchemy ORM (easy to switch DB)\n- ☁️ Ready for cloud deployment (Heroku, GCP, AWS)\n- 🔒 Secure API key management with environment variables\n\n---\n\n## 📁 Project Structure\n\n```\nfastapi-ai-edu-tools/\n├── app/\n│   ├── main.py                    # FastAPI app setup\n│   ├── models.py                  # SQLAlchemy models\n│   ├── schemas.py                 # Pydantic schemas\n│   ├── database.py                # DB engine and session\n│   ├── google_ai_integration.py   # Google AI Studio integration\n│   └── routes/\n│       ├── user.py                # /users/ route\n│       └── ai.py                  # /ask-ai/ route\n├── .env                           # Environment variables (create from .env.example)\n├── .env.example                   # Environment variables template\n├── requirements.txt\n├── setup.sh                       # Quick setup script\n└── README.md\n```\n\n---\n\n## 🔧 Setup Instructions\n\n### Quick Setup (Recommended)\n```bash\n# Clone the repository\ngit clone https://github.com/your-username/fastapi-ai-edu-tools.git\ncd fastapi-ai-edu-tools\n\n# Run the setup script\n./setup.sh\n\n# Edit .env file with your Google AI Studio API key\nnano .env  # or use your preferred editor\n```\n\n### Manual Setup\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/your-username/fastapi-ai-edu-tools.git\ncd fastapi-ai-edu-tools\n```\n\n### 2. Create a virtual environment\n```bash\npython3 -m venv venv\nsource venv/bin/activate  # or venv\\Scripts\\activate on Windows\n```\n\n### 3. Install dependencies\n```bash\npip install -r requirements.txt\n```\n\n### 4. Add your Google AI Studio API Key\nCreate a `.env` file in the root directory (or copy from `.env.example`) and add:\n\n```ini\nGOOGLE_API_KEY=your_google_ai_studio_api_key_here\n```\n\nTo get your Google AI Studio API key:\n1. Go to [Google AI Studio](https://aistudio.google.com/)\n2. Sign in with your Google account\n3. Click on \"Get API key\" \n4. Create a new API key or use an existing one\n5. Copy the API key and paste it in your `.env` file\n\n### 5. Run the FastAPI server\n```bash\nuvicorn app.main:app --reload\n```\nServer will start at: http://127.0.0.1:8000\n\n---\n\n## 🧪 API Endpoints\n\n### ✅ Ask AI\n**POST** `/ask-ai/`\n\nBody:\n```json\n{\n    \"prompt\": \"What is Newton's First Law?\"\n}\n```\n\nResponse:\n```json\n{\n    \"response\": \"Newton's First Law states that...\"\n}\n```\n\n### ✅ Create User\n**POST** `/users/`\n\nBody:\n```json\n{\n    \"name\": \"Ashish\",\n    \"email\": \"ashish@example.com\"\n}\n```\n\n---\n\n## 📚 Technologies Used\n\n- **FastAPI** — high-performance API framework\n- **Google AI Studio** — Gemini AI model integration\n- **SQLAlchemy** — ORM for database models\n- **Pydantic** — Data validation\n- **Uvicorn** — ASGI server\n- **python-dotenv** — for environment variable handling\n\n---\n\n## 🚀 Future Enhancements\n\n- 🔐 JWT Authentication\n- 🧠 Multiple AI model support (OpenAI, Anthropic, etc.)\n- 🧩 Vector DB support (e.g., Pinecone, Chroma)\n- 🌐 WebSocket/streaming responses\n- 📊 Analytics dashboard\n- 🎯 Fine-tuned models for educational content\n\n---\n\n## 🤝 Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n\n---\n\n## 👋 Contact\n\n**Built by Aashish Timalsina**\n- 📧 aashish@example.com\n- 🌐 Danson Solutions\n\n---\n\nLet me know if you'd like:\n- Swagger UI screenshots  \n- A hosted version (on Render/Heroku)  \n- CI/CD setup via GitHub Actions  \n- README badges (build passing, license, OpenAI-powered, etc.)  \n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashishtimalsina%2Ffastapi-ai-edu-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faashishtimalsina%2Ffastapi-ai-edu-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashishtimalsina%2Ffastapi-ai-edu-tools/lists"}