{"id":23703368,"url":"https://github.com/tushar-3549/api-development","last_synced_at":"2025-10-13T16:45:08.226Z","repository":{"id":269250905,"uuid":"904115290","full_name":"tushar-3549/API-Development","owner":"tushar-3549","description":"FastAPI application showcasing backend development with Python, including RESTful APIs, database integration with PostgreSQL, and modern development practices.","archived":false,"fork":false,"pushed_at":"2025-05-26T15:09:20.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T15:24:02.790Z","etag":null,"topics":["api-development","backend","fastapi","jwt","oauth2","postgresql-database","sqlalchemy"],"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/tushar-3549.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":"2024-12-16T09:29:58.000Z","updated_at":"2025-05-26T15:09:24.000Z","dependencies_parsed_at":"2024-12-22T06:26:08.005Z","dependency_job_id":"35e35ceb-e6cc-4e1d-b014-e3f6918d6aba","html_url":"https://github.com/tushar-3549/API-Development","commit_stats":null,"previous_names":["tushar-3549/api-development"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tushar-3549/API-Development","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tushar-3549%2FAPI-Development","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tushar-3549%2FAPI-Development/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tushar-3549%2FAPI-Development/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tushar-3549%2FAPI-Development/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tushar-3549","download_url":"https://codeload.github.com/tushar-3549/API-Development/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tushar-3549%2FAPI-Development/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016101,"owners_count":26085802,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-development","backend","fastapi","jwt","oauth2","postgresql-database","sqlalchemy"],"created_at":"2024-12-30T13:01:36.163Z","updated_at":"2025-10-13T16:45:08.221Z","avatar_url":"https://github.com/tushar-3549.png","language":"Python","readme":"##  ShareThoughts API\n\nA high-performance ShareThoughts API built using **FastAPI**, **PostgreSQL**, and **Alembic**. This project implements secure user authentication, robust database operations, and thorough testing to ensure a reliable and efficient system.\n\n---\n\n## 🚀 Features\n\n- 🔐 **User Authentication** (JWT-based login/logout using OAuth2)\n- 📝 **CRUD Operations** for posts and users\n- 🔑 **Password Hashing** for secure login credentials\n- 🗄️ **PostgreSQL Integration** using SQLAlchemy ORM\n- 🔄 **Alembic Migrations** for schema versioning\n- 🛡️ **SQL Injection Prevention** with ORM best practices\n- ✅ **Unit Testing** with Pytest (users, auth, DB, API endpoints)\n- 🧪 **Postman API Testing** support\n- ⚙️ **GitHub Actions** for CI/CD\n- 🐳 **Docker Support** for easy containerized deployment\n\n---\n\n## 🛠️ Technologies Used\n\n- **FastAPI** – Modern, high-performance web framework\n- **PostgreSQL** – Relational database\n- **SQLAlchemy** – ORM for interacting with the DB\n- **Alembic** – Database migrations\n- **OAuth2 \u0026 JWT** – Secure authentication\n- **Pytest** – Python testing framework\n- **GitHub Actions** – CI/CD automation\n\n---\n\n## 📦 Installation\n\n### ✅ Prerequisites\n\nEnsure the following are installed:\n\n- Python (3.10 or higher)\n- PostgreSQL\n- Virtual environment module (venv)\n\n### 🔧 Steps\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/tushar-3549/API-Development.git\n   cd API-Development\n   ```\n2. **Create and activate a virtual environment**\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n3. **Install dependencies**\n   `pip install -r requirements.txt`\n4. **Set up your `.env` file**\n   ```\n   DATABASE_URL=postgresql://\u003cusername\u003e:\u003cpassword\u003e@localhost/\u003cdbname\u003e\n   SECRET_KEY=your_secret_key\n   ALGORITHM=HS256\n   ACCESS_TOKEN_EXPIRE_MINUTES=30\n   ```\n5. **Apply Alembic migrations**\n   `alembic upgrade head`\n6. **Run the FastAPI server**\n   `uvicorn app.main:app --reload`\n- Visit the API at: `http://127.0.0.1:8000`\n- Docs: `http://127.0.0.1:8000/docs`\n- 🧪 **Running Tests**\n  \n  ```pytest```\n\n**ER Diagram**\n\n![fastapi - public](https://github.com/user-attachments/assets/fd5483ed-7abf-4943-a931-e8c9e365b17b)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftushar-3549%2Fapi-development","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftushar-3549%2Fapi-development","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftushar-3549%2Fapi-development/lists"}