{"id":30142098,"url":"https://github.com/shahidmalik4/fastapi-react-blog","last_synced_at":"2026-04-05T21:02:39.505Z","repository":{"id":306227785,"uuid":"1025450319","full_name":"shahidmalik4/fastapi-react-blog","owner":"shahidmalik4","description":"A full-stack blog application built with React and FastAPI, featuring CRUD functionality, RESTful API integration, and modern UI using Bootstrap","archived":false,"fork":false,"pushed_at":"2025-07-24T09:24:04.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T13:23:25.462Z","etag":null,"topics":["blog","bootstrap","fastapi","javascript","python","reactjs","rest-api","sqlalchemy","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/shahidmalik4.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-24T09:16:17.000Z","updated_at":"2025-07-24T09:24:07.000Z","dependencies_parsed_at":"2025-07-24T13:35:11.033Z","dependency_job_id":null,"html_url":"https://github.com/shahidmalik4/fastapi-react-blog","commit_stats":null,"previous_names":["shahidmalik4/fastapi-react-blog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shahidmalik4/fastapi-react-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahidmalik4%2Ffastapi-react-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahidmalik4%2Ffastapi-react-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahidmalik4%2Ffastapi-react-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahidmalik4%2Ffastapi-react-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahidmalik4","download_url":"https://codeload.github.com/shahidmalik4/fastapi-react-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahidmalik4%2Ffastapi-react-blog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269837136,"owners_count":24483175,"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-08-11T02:00:10.019Z","response_time":75,"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":["blog","bootstrap","fastapi","javascript","python","reactjs","rest-api","sqlalchemy","sqlite3"],"created_at":"2025-08-11T05:38:25.784Z","updated_at":"2025-12-30T21:47:51.314Z","avatar_url":"https://github.com/shahidmalik4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📝 Blog App — React + FastAPI\n\nA **full-stack blog application** built with **React (Vite)** and **FastAPI**, supporting full **CRUD operations**, responsive UI with **Bootstrap**, and **SQLite** for persistent data storage. Clean architecture and RESTful design.\n\n---\n\n## 📁 Project Structure\n\n```\nproject-root/\n│\n├── backend/               # FastAPI backend\n│   ├── alembic/           # Alembic migrations\n│   ├── app/               # Core FastAPI application\n│   │   ├── crud.py        # DB operations\n│   │   ├── database.py    # DB setup\n│   │   ├── main.py        # FastAPI app entry point\n│   │   ├── models.py      # SQLAlchemy models\n│   │   ├── routes.py      # API routes\n│   │   ├── schemas.py     # Pydantic schemas\n│   │   └── seed.py        # Optional DB seed script\n│   ├── blog.db            # SQLite database\n│   └── requirements.txt   # Python dependencies\n│\n├── frontend/              # React frontend (Vite)\n│   ├── public/            # Static files\n│   ├── src/\n│   │   ├── assets/        # Images \u0026 styling\n│   │   ├── components/    # Reusable components (Navbar, BlogList)\n│   │   ├── pages/         # Page views (CreatePost, BlogDetail)\n│   │   ├── App.jsx        # Main app component\n│   │   └── main.jsx       # React entry point\n│   ├── index.html         # Base HTML file\n│   ├── package.json       # JS dependencies\n│   └── vite.config.js     # Vite config\n│\n└── .gitignore             # Ignored files for Git\n```\n\n---\n\n## 🚀 Features\n\n- ✅ Create, Read, Update, Delete (CRUD) blog posts\n- ✅ RESTful API with FastAPI\n- ✅ React frontend built with Vite\n- ✅ Responsive UI using Bootstrap\n- ✅ SQLite for lightweight storage\n- ✅ Clean separation of frontend and backend\n\n---\n\n## 📦 Tech Stack\n\n| Frontend       | Backend       | Database | Styling   | Others       |\n|----------------|----------------|----------|-----------|--------------|\n| React (Vite)   | FastAPI        | SQLite   | Bootstrap | Axios, Alembic |\n\n---\n\n## ⚙️ Getting Started\n\n### 1. 🔥 Backend Setup\n\n```bash\ncd backend\npython -m venv env\nsource env/bin/activate   # On Windows: env\\Scripts\\activate\npip install -r requirements.txt\nuvicorn app.main:app --reload\n```\n\n### 2. ⚡ Frontend Setup\n\n```bash\ncd frontend\nnpm install\nnpm run dev\n```\n\n- Frontend runs on: `http://localhost:5173`\n- Backend runs on: `http://localhost:8000`\n\n---\n\n## 🧪 Example Routes (FastAPI)\n\n| Method | Endpoint         | Description            |\n|--------|------------------|------------------------|\n| GET    | `/blogs`         | Fetch all blog posts   |\n| GET    | `/blogs/{id}`    | Get a single post      |\n| POST   | `/blogs`         | Create a blog post     |\n| PUT    | `/blogs/{id}`    | Update a blog post     |\n| DELETE | `/blogs/{id}`    | Delete a blog post     |\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahidmalik4%2Ffastapi-react-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahidmalik4%2Ffastapi-react-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahidmalik4%2Ffastapi-react-blog/lists"}