{"id":19829603,"url":"https://github.com/gracefullcoder/basic-quora-posts-page","last_synced_at":"2025-07-30T05:04:10.139Z","repository":{"id":220722844,"uuid":"752421693","full_name":"gracefullcoder/Basic-Quora-Posts-page","owner":"gracefullcoder","description":"This is not a project just learning about restful apis and perform basic CRUD operations","archived":false,"fork":false,"pushed_at":"2024-02-03T22:19:20.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T21:08:10.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"EJS","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/gracefullcoder.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-03T20:46:48.000Z","updated_at":"2024-02-03T22:19:24.000Z","dependencies_parsed_at":"2025-01-11T09:45:46.344Z","dependency_job_id":"c23a8d8d-5372-4d79-a588-16854c43213e","html_url":"https://github.com/gracefullcoder/Basic-Quora-Posts-page","commit_stats":null,"previous_names":["gracefullcoder/basic-quora-posts-page"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gracefullcoder/Basic-Quora-Posts-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FBasic-Quora-Posts-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FBasic-Quora-Posts-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FBasic-Quora-Posts-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FBasic-Quora-Posts-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gracefullcoder","download_url":"https://codeload.github.com/gracefullcoder/Basic-Quora-Posts-page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FBasic-Quora-Posts-page/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267814300,"owners_count":24148327,"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-07-30T02:00:09.044Z","response_time":70,"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-12T11:19:21.836Z","updated_at":"2025-07-30T05:04:10.084Z","avatar_url":"https://github.com/gracefullcoder.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a basic implementation of a Quora-like platform where users can perform CRUD (Create, Read, Update, Delete) operations on posts. Unlike traditional implementations, this version operates entirely in-memory using an array as the data store.\n\n## Features\n\n- **Create:** Users can create new posts by sending a POST request to the `/posts` endpoint with the necessary data.\n- **Read:** Posts can be retrieved either individually by their ID or collectively by sending a GET request to the `/posts` endpoint.\n- **Update:** Existing posts can be updated by sending a PUT request to the `/posts/{postId}` endpoint with the updated data.\n- **Delete:** Users can delete posts by sending a DELETE request to the `/posts/{postId}` endpoint.\n\n## Technologies Used\n\n- **Node.js:** The backend server is built using Node.js, providing a scalable and efficient runtime environment for JavaScript code.\n- **Express.js:** Express.js is used to create the RESTful API endpoints and handle HTTP requests.\n\n## Getting Started\n\nTo get started with the project, follow these steps:\n\n1. Clone this repository to your local machine.\n2. Install Node.js if not already installed.\n3. Navigate to the project directory in your terminal.\n4. Install dependencies by running `npm install`.\n5. Start the server by running `npm start`.\n6. You can now interact with the API endpoints using a tool like Postman or by integrating them into your front-end application.\n\n## API Endpoints\n\n- **GET /posts:** Retrieve all posts.\n- **GET /posts/new:** Render a form to create a new post.\n- **POST /posts:** Create a new post.\n- **GET /posts/show/:id:** Retrieve a specific post by ID and render its details.\n- **GET /posts/:id/edit:** Retrieve a specific post by ID and render a form to edit its content.\n- **PATCH /posts/:id:** Update an existing post by ID.\n- **DELETE /posts/:id:** Delete a post by ID.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgracefullcoder%2Fbasic-quora-posts-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgracefullcoder%2Fbasic-quora-posts-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgracefullcoder%2Fbasic-quora-posts-page/lists"}