{"id":23171246,"url":"https://github.com/ucangun/blogmotion_api","last_synced_at":"2026-04-11T05:31:12.254Z","repository":{"id":267044269,"uuid":"900079961","full_name":"ucangun/BlogMotion_Api","owner":"ucangun","description":"BlogMotion API: Backend service powering the BlogMotion platform. Built with Node.js, Express, and MongoDB, featuring secure authentication, rich API documentation, and seamless blog management. ","archived":false,"fork":false,"pushed_at":"2025-01-08T09:21:44.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T14:29:40.659Z","etag":null,"topics":["dotenv","express-async-errors","express-session","expressjs","jsonwebtoken","mongoose","morgan","node-cron","nodejs","nodemailer","passport","passport-google-oauth20","redoc-express","stripe","swagger-autogen","swagger-ui","validator"],"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/ucangun.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}},"created_at":"2024-12-07T20:05:05.000Z","updated_at":"2025-01-08T09:21:47.000Z","dependencies_parsed_at":"2024-12-07T23:20:14.853Z","dependency_job_id":"1f7ad700-0ab4-4f3e-b50d-e87014336d4d","html_url":"https://github.com/ucangun/BlogMotion_Api","commit_stats":null,"previous_names":["ucangun/blogmotion_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ucangun/BlogMotion_Api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucangun%2FBlogMotion_Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucangun%2FBlogMotion_Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucangun%2FBlogMotion_Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucangun%2FBlogMotion_Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucangun","download_url":"https://codeload.github.com/ucangun/BlogMotion_Api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucangun%2FBlogMotion_Api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["dotenv","express-async-errors","express-session","expressjs","jsonwebtoken","mongoose","morgan","node-cron","nodejs","nodemailer","passport","passport-google-oauth20","redoc-express","stripe","swagger-autogen","swagger-ui","validator"],"created_at":"2024-12-18T04:16:54.760Z","updated_at":"2026-04-11T05:31:12.238Z","avatar_url":"https://github.com/ucangun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔨 BlogMotion API - Backend\n\n**BlogMotion API** is a modern backend solution built with **Node.js** and **Express.js** to handle blogging platform functionalities, including user authentication, blog management, and interaction features like likes and comments. This API powers the BlogMotion frontend with efficient CRUD operations and secure endpoints for a seamless user experience.\n\n## 🌟 Project Purpose\n\nThe purpose of the BlogMotion API is to provide robust backend support for the **BlogMotion** platform, enabling users to:\n\n- Manage their accounts securely.\n- Write, edit, and delete blogs.\n- Interact with blogs by liking, commenting, and sharing.\n- Perform all actions securely with JWT-based authentication.\n\n## 📼 Outcome\n\n![BlogMotion API]()\n\n## 🔨 Technologies Used\n\n- **Node.js**: JavaScript runtime environment for building the server-side application.\n- **Express.js**: Web framework for handling routing, middleware, and requests.\n- **MongoDB \u0026 Mongoose**: For data storage and schema modeling.\n- **JWT (JSON Web Tokens)**: Ensures secure authentication and protected route access.\n- **Nodemailer**: Sends email notifications for password resets and email verification.\n- **Bcryptjs**: Hashes and compares passwords for secure user authentication.\n- **dotenv**: Manages environment variables like database credentials and JWT secrets.\n- **Swagger UI**: Provides interactive API documentation for easy exploration of endpoints.\n- **ReDoc**: Simplifies API documentation for enhanced developer usability.\n- **CORS**: Handles cross-origin requests, enabling secure frontend-backend communication.\n- **Helmet**: Adds security headers to the API responses for improved security.\n- **Rate-Limiter**: Limits excessive API requests, preventing abuse and enhancing reliability.\n- **XSS \u0026 mongoSanitize**: Protects against cross-site scripting (XSS) and NoSQL injection attacks.\n- **Express-Async-Errors**: Simplifies error handling for asynchronous routes.\n- **Cookie-Parser**: Parses cookies for session management.\n\n## ⚙️ Features\n\n### **🔨 Blog Management**\n\n- Create, read, update, and delete blogs with advanced text formatting.\n- Allow users to interact with blogs by liking and commenting.\n- Share blogs across various platforms.\n\n### **🔒 Authentication**\n\n- Secure login and registration using JWT.\n- `Google OAuth` integration for simplified user onboarding.\n- Password reset via email with secure 6-digit codes.\n- Email verification to activate user accounts post-registration.\n\n### **💜 API Documentation**\n\n- **Swagger UI**: [Swagger Documentation](https://blogmotion-api.onrender.com/documents/swagger)\n- **ReDoc**: [ReDoc Documentation](https://blogmotion-api.onrender.com/documents/redoc)\n\n### **🔄 CORS Configuration**\n\n- CORS middleware ensures secure cross-origin communication with the frontend.\n\n### **📊 Real-time Updates**\n\n- The API provides real-time data to keep the frontend updated dynamically.\n\n### **🚦 Authentication Flow**\n\n1. **User Authentication**:\n   - JWT tokens manage user sessions and authorize access to protected resources.\n   - Users can register/login with either email and password or Google OAuth.\n2. **Protected Routes**:\n   - Routes like blog creation and account management require valid tokens.\n3. **Email Verification**:\n   - Users must verify their email addresses via a verification link to activate accounts.\n\n## 🚀 Deployment\n\nThe API is deployed on **Render** and accessible via the following URL:  \n[BlogMotion API Live Demo](https://blogmotion-api.onrender.com/)\n\n## 📦 At the End of This Project, You Will Learn:\n\n- Developing secure and scalable **Node.js** APIs with **Express.js**.\n- Managing **authentication** and **authorization** with JWT.\n- Using **MongoDB** and **Mongoose** for efficient data modeling.\n- Protecting APIs against **XSS**, **NoSQL injections**, and **other vulnerabilities**.\n- Documenting APIs using **Swagger UI** and **ReDoc**.\n\n![ERD]()\n\n\u003cp align=\"center\"\u003e🚀 Happy Coding with BlogMotion API! 🚀\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucangun%2Fblogmotion_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucangun%2Fblogmotion_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucangun%2Fblogmotion_api/lists"}