{"id":18628475,"url":"https://github.com/techmannih/blog","last_synced_at":"2025-10-28T04:09:25.624Z","repository":{"id":255991655,"uuid":"854060335","full_name":"techmannih/blog","owner":"techmannih","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-09T14:04:57.000Z","size":234,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T01:47:32.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog-six-azure-35.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/techmannih.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-09-08T09:54:33.000Z","updated_at":"2024-09-09T14:05:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7abe989-70f9-496c-9e2b-d7550f46e560","html_url":"https://github.com/techmannih/blog","commit_stats":null,"previous_names":["techmannih/blog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/techmannih/blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techmannih","download_url":"https://codeload.github.com/techmannih/blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281382714,"owners_count":26491372,"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-10-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2024-11-07T04:46:50.609Z","updated_at":"2025-10-28T04:09:25.610Z","avatar_url":"https://github.com/techmannih.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Blog Management System\n\nThis repository provides the complete source code for a blog management system built with:\n\n* **Frontend:** Next.js for efficient routing and server-side rendering.\n* **Backend:** Express.js for building a robust API server.\n* **Database:** SQLite (for simplicity and quick setup; consider migrating to a more scalable database for production).\n* **UI Library:** ShadCN for a sleek and modern design.\n\n## Features:\n\n* **Responsive Design:** Optimal viewing across devices.\n* **Frontend Pages:**\n    * Home: Displays a list of all blog posts with view/delete options.\n    * Create Post: Form with validation for creating new posts.\n    * View Post: Displays the full content of a selected post.\n* **Frontend Components:**\n    * Blog Card: Displays title and excerpt of each blog post.\n    * Header: Simple navigation bar.\n    * Form: For creating posts (title, content, with validation).\n    * Button: For submitting forms and deleting posts (styled with ShadCN).\n* **Backend API Endpoints:**\n    * `GET /posts`: Retrieve all blog posts.\n    * `GET /posts/:id`: Retrieve a single blog post by ID.\n    * `POST /posts`: Create a new blog post.\n    * `DELETE /posts/:id`: Delete a post (optional confirmation modal).\n    * `PUT /posts/:id`: Update a post (not implemented in this version).\n* **Database Model:**\n    * **Post**: Table with fields `id`, `title`, and `content`.\n* **Validation:**\n    * Enforces required `title` and `content` fields when creating posts.\n\n## Dependencies:\n\n* Node.js and npm (or yarn)\n* Next.js\n* ShadCN UI library\n* Express.js\n* SQLite (consider a more robust database for production)\n\n## Setup and Run Instructions\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- **Node.js**: [https://nodejs.org/](https://nodejs.org/)\n- **SQLite**: [https://www.sqlite.org/](https://www.sqlite.org/)\n- **Git**: [https://git-scm.com/](https://git-scm.com/)\n\n### Frontend Setup\n\n**1. Clone the repository:**\n\n```bash\ngit clone https://github.com/techmannih/blog.git\n```\n```bash\ncd blog\n```\n\n## 2. Navigate to the frontend directory: \n\n```bash\ncd frontend\n```\n\n**3. Install dependencies:**\n\n```bash\nnpm install\n```\n\n**4. Run the frontend server:**\n\n```bash\nnpm run dev\n```\n\n### Backend Setup\n\n**1. Navigate to the backend directory:**\n\n```bash\ncd backend\n```\n\n**2. Install dependencies:**\n\n```bash\nnpm install\n```\n\n**3. Run the backend server:**\n\n```bash\nnpm run serve\n```\n\n### Access the Application\n\n- **Frontend:** Open [http://localhost:3000](http://localhost:3000) in your browser.\n- **Backend:** The backend server runs on [http://localhost:5000](http://localhost:5000).\n\n\n## Deploying the Application\n\n ### Frontend Deployment (vercel)\n deploy the frontend to vercel by running the following command in the frontend directory\n ```bash    \n   https://blog-six-azure-35.vercel.app/\n ```\n\n\n #### Backend Deployment (Azure App Serveice)\n deploy the backend to Azure App Service running the following command in the frontend directory\n\n```bash\nhttps://blognext-ckh7gyhzd6f2gcg8.eastus-01.azurewebsites.net/\n```\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmannih%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechmannih%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmannih%2Fblog/lists"}