{"id":42817679,"url":"https://github.com/noyonalways/tech-tips-hub-api","last_synced_at":"2026-01-30T06:43:47.632Z","repository":{"id":257909186,"uuid":"867715290","full_name":"noyonalways/tech-tips-hub-api","owner":"noyonalways","description":"Tech Tips Hub Api ","archived":false,"fork":false,"pushed_at":"2025-07-04T13:03:38.000Z","size":219,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T14:47:25.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://techtipshub-api.vercel.app","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/noyonalways.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":"2024-10-04T15:22:36.000Z","updated_at":"2025-07-04T13:03:41.000Z","dependencies_parsed_at":"2025-07-04T14:27:51.438Z","dependency_job_id":"3e2317b2-2f82-47d3-aa08-2cb17632f7e4","html_url":"https://github.com/noyonalways/tech-tips-hub-api","commit_stats":null,"previous_names":["noyonalways/tech-tips-hub-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noyonalways/tech-tips-hub-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyonalways%2Ftech-tips-hub-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyonalways%2Ftech-tips-hub-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyonalways%2Ftech-tips-hub-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyonalways%2Ftech-tips-hub-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noyonalways","download_url":"https://codeload.github.com/noyonalways/tech-tips-hub-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyonalways%2Ftech-tips-hub-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T06:42:00.998Z","status":"ssl_error","status_checked_at":"2026-01-30T06:41:58.659Z","response_time":66,"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":[],"created_at":"2026-01-30T06:43:46.997Z","updated_at":"2026-01-30T06:43:47.618Z","avatar_url":"https://github.com/noyonalways.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Youtube][youtube-shield]][youtube-url]\n[![Facebook][facebook-shield]][facebook-url]\n[![Facebook Page][facebook-shield]][facebook-group-url]\n[![Instagram][instagram-shield]][instagram-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n[![VS Code Theme][vscode-shield]][vscode-theme-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://i.ibb.co.com/8dwgWQk/tech-tips-hub-logo.png\" alt=\"Logo\" width=\"80\" height=\"80\" /\u003e\n    \u003ch3 align=\"center\"\u003e\n        \u003ca href=\"https://techtipshub-api.noyonrahman.xyz\" target=\"_blank\" \u003e\n            Tech Tips Hub API\n        \u003c/a\u003e\n    \u003c/h3\u003e\n\u003c/p\u003e\n\n## Description:\n\n**Tech Tips Hub** is an advanced blogging platform tailored for tech enthusiasts to read and write blogs. Users can access both free and premium blogs, with a monthly subscription offering exclusive content. The platform supports features like user registration, email verification, JWT-based authentication, upvoting/downvoting blogs, commenting with replies, and following/unfollowing users. It tracks important user interactions such as views, followers, and following, enhancing the social experience.\n\n---\n\n### **User Features:**\n\n- **User Registration \u0026 Login:** Secure registration and login using JWT-based authentication.\n- **Email Verification:** Users must verify their email after registration to access full platform features.\n- **Read \u0026 Write Blogs:** Users can publish their own blogs or read both free and premium content.\n- **Upvote/Downvote Blogs:** Users can upvote or downvote blogs to show their preference.\n- **Commenting \u0026 Replies:** Users can comment on blogs and reply to comments, fostering engagement.\n- **Follow/Unfollow Users:** Users can follow or unfollow others, with tracking of followers and following counts.\n- **Premium Content Subscription:** Access premium blogs with a monthly subscription.\n- **View Tracking:** Track unique blog views while excluding the author’s views.\n\n---\n\n### **Admin Features:**\n\n- **User Management:** Admins can manage user accounts, including viewing, editing, or suspending users.\n- **Content Moderation:** Admins can monitor, approve, or delete blogs and comments to ensure community guidelines are followed.\n- **Subscription Management:** Admins can manage user subscriptions, view active and expired subscriptions, and handle billing issues.\n- **Analytics \u0026 Reporting:** Track platform engagement metrics like total views, user growth, upvotes/downvotes, and content performance.\n\n---\n\n### Authentication Routes:\n\n- `/api/v1/auth/register` - **POST** - Register a new user\n- `/api/v1/auth/login` - **POST** - Login and receive access/refresh tokens\n- `/api/v1/auth/refresh-token` - **POST** - Generate new access token using refresh token\n- `/api/v1/auth/forget-password` - **POST** - Send password reset link to email\n- `/api/v1/auth/reset-password` - **POST** - Reset password using the reset token\n- `/api/v1/auth/me` - **GET** - Get the current logged-in user's details (Requires Auth)\n- `/api/v1/auth/change-password` - **PUT** - Change the user's password (Requires Auth)\n\n### User Routes:\n\n- `/api/v1/users` - **GET** - Get all users (admin only)\n- `/api/v1/users/:username` - **GET** - Get a single user by username\n- `/api/v1/users/update-profile` - **PATCH** - Update logged-in user profile\n- `/api/v1/users/profile/update-social-links` - **PUT** - Update user profile social links\n- `/api/v1/users/:id/block` - **PATCH** - Block a user (admin only)\n- `/api/v1/users/:id/unblock` - **PATCH** - Unblock a user (admin only)\n- `/api/v1/users/:id/follow` - **PUT** - Follow a user (Requires Auth)\n- `/api/v1/users/:id/unfollow` - **DELETE** - Unfollow a user (Requires Auth)\n- `/api/v1/users/my-followers` - **GET** - Get current logged-in user's followers\n- `/api/v1/users/my-following` - **GET** - Get current logged-in user's following\n- `/api/v1/users/:id/followers` - **GET** - Get all followers by user ID\n- `/api/v1/users/:id/following` - **GET** - Get all following by user ID\n\n### Category Routes:\n\n- `/api/v1/categories` - **GET** - Get all categories\n- `/api/v1/categories` - **POST** - Create a new category (admin only)\n- `/api/v1/categories/:id` - **GET** - Get a single category by ID\n- `/api/v1/categories/:id` - **DELETE** - Delete a single category by ID (admin only)\n\n## Post Routes\n\n- `/api/v1/posts` - **POST** - Create a new post (requires user authentication)\n- `/api/v1/posts` - **GET** - Get all posts (public access)\n- `/api/v1/posts/my-posts` - **GET** - Get all posts by the current logged-in user (requires user authentication)\n- `/api/v1/posts/:slug` - **GET** - Get a single post by slug (access depends on the post type)\n- `/api/v1/posts/:id/vote` - **PUT** - Vote on a post (requires user authentication)\n- `/api/v1/posts/:id/comments` - **POST** - Comment on a post (requires user authentication)\n- `/api/v1/posts/:id/comments` - **GET** - Get all comments by post ID (requires user authentication)\n- `/api/v1/posts/users/:userId` - **GET** - Get all posts by user ID (public access)\n\n### Subscriptions Routes:\n\n- `/api/v1/subscriptions/subscribe` - **POST** - Subscribe to a premium plan (requires user authentication)\n\n### Payments Routes:\n\n- `/api/v1/payments/confirmation` - **POST** - Check payment confirmation\n- `/api/v1/payments/failed` - **POST** - Handle payment failure\n- `/api/v1/payments/canceled` - **GET** - Handle payment cancellation\n\n### Tech Stack\n\n| Icon                                                                                                                   | Technology Name |\n| ---------------------------------------------------------------------------------------------------------------------- | --------------- |\n| ![Node.js](https://img.shields.io/static/v1?label=\u0026message=Node.js\u0026color=339933\u0026logo=nodedotjs\u0026logoColor=white)        | Node.js         |\n| ![Express](https://img.shields.io/static/v1?label=\u0026message=Express\u0026color=404D59)                                       | Express         |\n| ![TypeScript](https://img.shields.io/static/v1?label=\u0026message=TypeScript\u0026color=007ACC\u0026logo=typescript\u0026logoColor=white) | TypeScript      |\n| ![MongoDB](https://img.shields.io/static/v1?label=\u0026message=MongoDB\u0026color=47A248\u0026logo=mongodb\u0026logoColor=white)          | MongoDB         |\n| ![Bcrypt](https://img.shields.io/static/v1?label=\u0026message=Bcrypt\u0026color=EFCA00)                                         | Bcrypt          |\n| ![Zod](https://img.shields.io/static/v1?label=\u0026message=Zod\u0026color=3068b7\u0026logo=zod\u0026logoColor=white)                      | Zod             |\n| ![Nodemailer](https://img.shields.io/static/v1?label=\u0026message=Nodemailer\u0026color=005571\u0026logo=npm\u0026logoColor=white)        | Nodemailer      |\n| ![Multer](https://img.shields.io/static/v1?label=\u0026message=Multer\u0026color=34B7F1)                                         | Multer          |\n| ![Cloudinary](https://img.shields.io/static/v1?label=\u0026message=Cloudinary\u0026color=3A8E4D)                                 | Cloudinary      |\n| ![Axios](https://img.shields.io/static/v1?label=\u0026message=Axios\u0026color=5A29E3\u0026logo=axios\u0026logoColor=white)                | Axios           |\n| ![JWT](https://img.shields.io/static/v1?label=\u0026message=JWT\u0026color=000000\u0026logo=json-web-tokens\u0026logoColor=white)          | JWT             |\n\n## 💻 Running locally:\n\nTo run the this project locally, follow these steps:\n\n### 1. Clone the repository from GitHub:\n\n```sh\ngit clone https://github.com/noyonalways/tech-tips-hub-api.git\n```\n\n### 2. Navigate into the project directory:\n\n```sh\ncd tech-tips-hub-api\n```\n\n### 3. Install Dependencies (npm or yarn):\n\n```sh\nnpm install\n```\n\nor\n\n```sh\nyarn\n```\n\n### 4. Set up environment variables:\n\n- Create a `.env` file in the root directory.\n- Define necessary environment variables such as database connection URL, PORT, etc. Refer to any provided `.env.example` file or documentation for required variables.\n\n```sh\n# app configuration\nPORT=\"your_applications_port\"\nDATABASE_URL=\"your_database_connection_url\"\nNODE_ENV=development\nJWT_ACCESS_TOKEN_SECRET=\"your_jwt_access_token_secret\"\nJWT_REFRESH_TOKEN_SECRET=\"your_jwt_refresh_token_secret\"\nJWT_ACCESS_TOKEN_EXPIRES_IN=\"your_jwt_access_token_expiration_duration\"\nJWT_REFRESH_TOKEN_EXPIRES_IN=\"your_jwt_refresh_token_expiration_duration\"\n\n# reset password configuration\nJWT_RESET_PASSWORD_SECRET=\"your_jwt_reset_password_secret\"\nJWT_RESET_PASSWORD_EXPIRES_IN=\"your_jwt_reset_password_expiration_duration\"\nRESET_PASSWORD_UI_URL=\"your_reset_password_ui_url\"\n\n# SMTP authentication\nSMTP_AUTH_USER=\"your_smtp_auth_user_email\"\nSMTP_AUTH_PASSWORD=\"your_smtp_auth_password\"\n\n# nodemailer\nNODEMAILER_EMAIL_FROM=\"your_nodemailer_email\"\n\n# hash password\nBCRYPT_SALT_ROUND=\"bcrypt_salt_round\"\n\n# cloudinary configuration\nCLOUD_NAME=\"your_cloudinary_cloud_name\"\nCLOUDINARY_API_KEY=\"your_cloudinary_api_key\"\nCLOUDINARY_API_SECRET=\"your_cloudinary_api_secret\"\n\n# other configuration\nAPI_BASE_URL=\"your_applications_api_base_url\"\nCLIENT_BASE_URL=\"your_applications_client_base_url\"\n\nAAMARPAY_GATEWAY_BASE_URL=\"aamarpay_gateway_base_url\"\nAAMARPAY_STORE_ID=\"aamarpay_store_id\"\nAAMARPAY_SIGNATURE_KEY=\"aamarpay_signature_key\"\n```\n\n### 4. Run the Application:\n\n```sh\nnpm run dev\n```\n\nor\n\n```sh\nyarn dev\n```\n\n## Contact\n\n- Email: [noyonrahman2003@gmail.com](mailto:noyonrahman2003@gmail.com)\n- LinkedIn: [Noyon Rahman](https://linkedin.com/in/noyonalways)\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\n[youtube-shield]: https://img.shields.io/badge/-Youtube-black.svg?style=round-square\u0026logo=youtube\u0026color=555\u0026logoColor=white\n[youtube-url]: https://youtube.com/@deskofnoyon\n[facebook-shield]: https://img.shields.io/badge/-Facebook-black.svg?style=round-square\u0026logo=facebook\u0026color=555\u0026logoColor=white\n[facebook-url]: https://facebook.com/noyonalways\n[facebook-group-url]: https://facebook.com/webbronoyon\n[instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=round-square\u0026logo=instagram\u0026color=555\u0026logoColor=white\n[instagram-url]: https://instagram.com/noyonalways\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=round-square\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://linkedin.com/in/noyonalways\n[vscode-shield]: https://img.shields.io/badge/-VS%20Code%20Theme-black.svg?style=round-square\u0026logo=visualstudiocode\u0026colorB=555\n[vscode-theme-url]: https://marketplace.visualstudio.com/items?itemName=noyonalways.codevibe-themes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyonalways%2Ftech-tips-hub-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoyonalways%2Ftech-tips-hub-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyonalways%2Ftech-tips-hub-api/lists"}