{"id":18344114,"url":"https://github.com/alin00r/blog-api","last_synced_at":"2026-04-12T00:46:32.594Z","repository":{"id":222338194,"uuid":"756942505","full_name":"alin00r/Blog-API","owner":"alin00r","description":"Secure Blog REST API using NodeJS + Express + JWT + Mongoose","archived":false,"fork":false,"pushed_at":"2024-02-13T16:46:07.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T22:43:15.986Z","etag":null,"topics":["jwt","mongodb","mongoose","nodejs","rest-api","sharp"],"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/alin00r.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-02-13T15:55:00.000Z","updated_at":"2024-02-13T16:21:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c9ca120-7c62-4a7d-a381-61552167327d","html_url":"https://github.com/alin00r/Blog-API","commit_stats":null,"previous_names":["alin00r/blog-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alin00r/Blog-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alin00r%2FBlog-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alin00r%2FBlog-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alin00r%2FBlog-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alin00r%2FBlog-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alin00r","download_url":"https://codeload.github.com/alin00r/Blog-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alin00r%2FBlog-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270671738,"owners_count":24625836,"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-16T02:00:11.002Z","response_time":91,"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":["jwt","mongodb","mongoose","nodejs","rest-api","sharp"],"created_at":"2024-11-05T21:04:54.387Z","updated_at":"2026-04-12T00:46:32.550Z","avatar_url":"https://github.com/alin00r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Blog-API\n  \n## Introduction 🌟\nSecure Blog REST API using NodeJS + Express + JWT + Mongoose\n\n## Technologies 🚀\n\n- Node.js\n- Express.js\n- MongoDB\n- Mongoose\n- JSON Web Token (JWT)\n- bcrypt\n- sharp\n- Multer\n\n## Features ✨\n\n- [x] User Authentication: Allow users to sign up and log in.\n- [x] Profile Management: Users can update their profile details and change their password.\n- [x] Blog Management: Implement CRUD operations for Blogs.\n- [x] File Upload: Allow users to upload a profile picture/avatar.\n- [x] Documentation: Provide setup instructions and API documentation.\n\n\n## Setting Up Your Local Environment\n\nFollow these steps to set up your local environment for the Natours app:\n\n1. **Clone the Repository:**\n   Clone this repository to your local machine:\n   ```bash\n   git clone https://github.com/alin00r/Blog-API.git\n   cd Blog-API\n   ```\n2. **Install Dependencies:**\n   Run the following command to install all the required dependencies:\n   ```bash\n   npm install\n   ```\n3. **Configure Environment Variables:**\n\n   Before you can run the Blog-API app, you need to set up your environment variables. These variables store sensitive information required for the app to function properly. Follow these steps to configure your environment variables:\n\n   1. **Create a `.env` File:**\n      In the root directory of the app, create a file named `.env`.\n\n   2. **Add the Following Environment Variables:**\n      Replace the placeholders with your actual information. You might need to sign up for accounts and services to obtain the required credentials.\n\n      ```dotenv\n\n      # MongoDB Configuration\n      MONGO_URI=your-mongodb-database-url\n\n      # JSON Web Token Configuration\n      JWT_SECRET=your-json-web-token-secret\n\n      ```\n# Endpoints\n## Auth Endpoints\n\n```POST``` ```/users/signup```\n\n```POST``` ```/users/login```\n\n```POST``` ```/users/logout```\n\n```POST``` ```/users/logoutAll```\n\n## Users Endpoints\n\n```GET``` ```/users/me```\n\n```DELETE``` ```/users/me```\n\n```PATCH``` ```/users/me```\n\n```GET``` ```/users/:id/avatar```\n\n```POST``` ```/upload/me/avatar```\n\n```DELETE``` ```/upload/me/avatar```\n\n```GET``` ``` /users/:username```\n\n## Blog Endpoints\n\n```POST``` ```/search```\n\n```POST``` ```/blog```\n\n```GET``` ```/blogs```\n\n```GET``` ```/blogs/:id```\n\n```PATCH``` ```/blogs/:id```\n\n```DELETE``` ```/blogs/:id```\n\n\n\n# API reference\n\nDuring API development, I use `Postman` for handling/testing all endpoints.\n\n- Postman collection/documentation is available on this link [click here](https://documenter.getpostman.com/view/28708948/2sA2r53QcQ)\n- Base URL endpoints: `http://127.0.0.1:8000/` or `http://localhost:8000/`\n\n\n\n- [Ali Nour](https://github.com/alin00r)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falin00r%2Fblog-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falin00r%2Fblog-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falin00r%2Fblog-api/lists"}