{"id":21135715,"url":"https://github.com/furkan-dogu/blogapp-api","last_synced_at":"2026-04-10T11:02:29.619Z","repository":{"id":239213277,"uuid":"798879529","full_name":"furkan-dogu/BlogApp-API","owner":"furkan-dogu","description":"This project is a RESTful API developed using Node.js and Express. The API interacts with a MongoDB database and is documented with Swagger.","archived":false,"fork":false,"pushed_at":"2024-07-14T14:45:55.000Z","size":401,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T19:16:51.856Z","etag":null,"topics":["cors","dotenv","express-async-errors","expressjs","mongodb","mongoose","nodejs","redoc-express","request-ip","swagger-autogen","swagger-ui-express","validator"],"latest_commit_sha":null,"homepage":"https://blog-app-api-iota.vercel.app","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/furkan-dogu.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-05-10T17:03:01.000Z","updated_at":"2024-07-14T14:45:58.000Z","dependencies_parsed_at":"2024-07-14T16:16:57.330Z","dependency_job_id":null,"html_url":"https://github.com/furkan-dogu/BlogApp-API","commit_stats":null,"previous_names":["furkan-dogu/blogapp-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/furkan-dogu/BlogApp-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FBlogApp-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FBlogApp-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FBlogApp-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FBlogApp-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furkan-dogu","download_url":"https://codeload.github.com/furkan-dogu/BlogApp-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkan-dogu%2FBlogApp-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cors","dotenv","express-async-errors","expressjs","mongodb","mongoose","nodejs","redoc-express","request-ip","swagger-autogen","swagger-ui-express","validator"],"created_at":"2024-11-20T06:58:05.636Z","updated_at":"2026-04-10T11:02:29.599Z","avatar_url":"https://github.com/furkan-dogu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog App API\n\nThis project is a RESTful API developed using Node.js and Express. The API interacts with a MongoDB database and is documented with Swagger.\n\n## ERD\n\n![ERD](./erd.png)\n\n## Table of Contents\n\n- [Technologies Used](#technologies-used)\n- [Documentation](#documentation)\n- [Endpoints](#endpoints)\n- [Project Skeleton](#project-skeleton)\n\n## Live Demo\n\n[Blog App API](https://blog-app-api-iota.vercel.app/)\n\n## Technologies Used\n\n- **Node.js**: A JavaScript runtime built on Chrome's V8 JavaScript engine.\n- **Express**: A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.\n- **Mongoose**: An ODM (Object Data Modeling) library for MongoDB and Node.js, providing a straight-forward, schema-based solution to model your application data.\n- **dotenv**: A zero-dependency module that loads environment variables from a `.env` file into `process.env`.\n- **cors**: A node.js package for providing a Connect/Express middleware that can be used to enable CORS (Cross-Origin Resource Sharing) with various options.\n- **express-async-errors**: A small utility to handle errors in async/await routes in Express.\n- **redoc-express**: A middleware for hosting OpenAPI (Swagger) documentation using ReDoc.\n- **request-ip**: A simple way to retrieve a user's IP address in a Node.js application.\n- **swagger-autogen**: A tool to automatically generate Swagger/OpenAPI documentation from existing code.\n- **swagger-ui-express**: A middleware for serving the Swagger UI bound to your Swagger/OpenAPI specification.\n- **validator**: A library for string validation and sanitization.\n\n## Documentation\n\n- Swagger UI: [https://blog-app-api-iota.vercel.app/documents/swagger](https://blog-app-api-iota.vercel.app/documents/swagger)\n- Redoc: [https://blog-app-api-iota.vercel.app/documents/redoc](https://blog-app-api-iota.vercel.app/documents/redoc)\n- JSON Documentation: [https://blog-app-api-iota.vercel.app/documents/json](https://blog-app-api-iota.vercel.app/documents/json)\n\n## Endpoints\n\n### Users\n\n- `GET /users`: Lists all users.\n- `POST /users`: Creates a new user.\n- `GET /users/:userId`: Displays a specific user.\n- `PUT /users/:userId`: Updates information of a specific user.\n- `DELETE /users/:userId`: Deletes a specific user.\n\n### Authentication\n- `POST /auth/login`: Provides user login.\n- `GET /auth/logout`: Terminates the user session.\n\n### Blogs\n\n- `GET /blogs`: Lists all blogs.\n- `POST /blogs`: Creates a new blog.\n- `GET /blogs/:blogId`: Displays a specific blog.\n- `PUT /blogs/:blogId`: Updates information of a specific blog.\n- `DELETE /blogs/:blogId`: Deletes a specific blog.\n\n### Categories\n\n- `GET /categories`: Lists all blog categories.\n- `POST /categories`: Creates a new blog category.\n- `GET /categories/:categoryId`: Displays a specific blog category.\n- `PUT /categories/:categoryId`: Updates information of a specific blog category.\n- `DELETE /categories/:categoryId`: Deletes a specific blog category.\n\n### Comments\n\n- `GET /comments`: Lists all comments.\n- `POST /comments`: Creates a new comment.\n- `GET /comments/:commentId`: Displays a specific comment.\n- `PUT /comments/:commentId`: Updates information of a specific comment.\n- `DELETE /comments/:commentId`: Deletes a specific comment.\n\n## Project Skeleton\n\n```\nBlog App API (folder) \n│\n├── src\n│    ├── configs\n│    │     ├── dbConnection.js\n│    │     └── swagger.json\n│    ├── controllers\n│    │     ├── auth.js     \n│    │     ├── blog.js          \n│    │     ├── category.js          \n│    │     ├── comment.js          \n│    │     ├── product.js     \n│    │     ├── token.js     \n│    │     └── user.js\n│    ├── helpers\n│    │     ├── passwordEncrypt.js    \n│    │     └── sync.js \n│    ├── middlewares \n│    │     ├── authentication.js \n│    │     ├── errorHandler.js \n│    │     ├── permissions.js   \n│    │     ├── queryHandler.js   \n│    │     └── requestIp.js \n│    ├── models                        \n│    │     ├── blog.js          \n│    │     ├── category.js          \n│    │     ├── comment.js              \n│    │     ├── token.js     \n│    │     └── user.js\n│    └── routes                \n│          ├── auth.js     \n│          ├── blog.js     \n│          ├── category.js     \n│          ├── comment.js     \n│          ├── document.js     \n│          ├── index.js         \n│          ├── token.js     \n│          └── user.js\n├── .gitignore\n├── index.js\n├── package-lock.json\n├── package.json\n├── swaggerAutogen.js\n├── vercel.json\n└── README.md\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-dogu%2Fblogapp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurkan-dogu%2Fblogapp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkan-dogu%2Fblogapp-api/lists"}