{"id":26172190,"url":"https://github.com/ragab0/blog-post-api","last_synced_at":"2026-06-14T21:31:41.446Z","repository":{"id":281183958,"uuid":"943043095","full_name":"ragab0/blog-post-api","owner":"ragab0","description":"A simple blog post api (back-end repo)","archived":false,"fork":false,"pushed_at":"2025-03-09T00:19:40.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T20:43:45.418Z","etag":null,"topics":["bcrypt","jwt","nestjs","nodejs","postgresql","rest-client","swagger","typeorm","typescript"],"latest_commit_sha":null,"homepage":"https://devblog-api-q9ij.onrender.com/api/docs","language":"TypeScript","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/ragab0.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-03-05T04:41:22.000Z","updated_at":"2025-03-15T05:09:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"71b43d09-2ce5-4d77-a04b-8669b6dcf3bf","html_url":"https://github.com/ragab0/blog-post-api","commit_stats":null,"previous_names":["ragab0/blog-post-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ragab0/blog-post-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragab0%2Fblog-post-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragab0%2Fblog-post-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragab0%2Fblog-post-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragab0%2Fblog-post-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragab0","download_url":"https://codeload.github.com/ragab0/blog-post-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragab0%2Fblog-post-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34339194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":["bcrypt","jwt","nestjs","nodejs","postgresql","rest-client","swagger","typeorm","typescript"],"created_at":"2025-03-11T19:53:39.564Z","updated_at":"2026-06-14T21:31:41.441Z","avatar_url":"https://github.com/ragab0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 DevBlog API\n\nA modern, feature-rich blogging platform API built with NestJS, featuring authentication and post management\n\n## ✨ Features\n\n- **🔐 Authentication**\n\n  - User registration and login\n  - JWT-based authentication\n  - Protected routes with auth guards\n  - User profile management\n\n- **📝 Blog Posts**\n\n  - Create, read, update, and delete posts\n  - Pagination support\n\n- **👤 User Management**\n\n  - User profiles with avatars\n  - Email-based authentication\n  - Password security with hashing\n  - Profile updates\n\n- **📚 API Documentation**\n\n  - Comprehensive Swagger documentation\n  - Detailed request/response schemas\n  - Interactive API testing interface (in REST client extension - postman like)\n\n## 🛠️ Tech Stack\n\n- **🔧 Framework**: NestJS\n- **🗄️ Database**: PostgreSQL with TypeORM\n- **🔑 Authentication**: JWT (JSON Web Tokens)\n- **📖 Documentation**: Swagger/OpenAPI\n- **✅ Validation**: Class Validator \u0026 Class Transformer\n- **🔒 Security**: bcrypt for password hashing\n\n## 💻 Quick Start\n\n### Prerequisites\n\n- Node.js\n- PostgreSQL server running locally\n- npm/yarn\n\n### Setup\n\n```bash\n# Install dependencies\nnpm install\n\n# Create .env file with your configurations\nPORT=3000\nDB_HOST=localhost\nDB_PORT=5432\nDB_USERNAME=postgres\nDB_PASSWORD=your_password\nDB_NAME=devblog\nJWT_SECRET=your_super_secret_key\n\n# Start development server\nnpm run start:dev\n```\n\n## 🔌 API Endpoints\n\n### 🚦 Project Structure\n\n```\nsrc/\n├── auth/           # Authentication module\n├── posts/          # Posts module\n├── users/          # Users module\n├── common/         # Shared resources\n└── app.module.ts   # Main application module\n```\n\n### Authentication\n\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Login user\n- `POST /api/auth/logout` - Logout user\n- `GET /api/auth/me` - Get user profile\n\n### Posts\n\n- `GET /api/posts` - Get all posts (with pagination)\n- `GET /api/posts/:id` - Get a specific post\n- `POST /api/posts` - Create a new post\n- `PUT /api/posts/:id` - Update a post\n- `DELETE /api/posts/:id` - Delete a post\n\n### Users\n\n- `GET /api/users/profile` - Get user profile\n- `PUT /api/users/profile` - Update user profile\n\n## 📖 API Documentation\n\nhttps://devblog-api-q9ij.onrender.com/api/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragab0%2Fblog-post-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragab0%2Fblog-post-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragab0%2Fblog-post-api/lists"}