{"id":20837362,"url":"https://github.com/devkanix/k-media","last_synced_at":"2026-04-07T20:31:44.964Z","repository":{"id":256167356,"uuid":"854495337","full_name":"devKanix/K-Media","owner":"devKanix","description":"This project is a backend implementation for a social media platform built using Node.js, Express.js, and MongoDB. The backend handles user authentication, profile management, and post creation.","archived":false,"fork":false,"pushed_at":"2024-09-10T04:57:46.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T01:33:15.923Z","etag":null,"topics":["api","expressjs","mongodb","nodejs"],"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/devKanix.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-09T09:22:21.000Z","updated_at":"2024-09-10T04:58:25.000Z","dependencies_parsed_at":"2025-03-12T09:50:34.022Z","dependency_job_id":null,"html_url":"https://github.com/devKanix/K-Media","commit_stats":null,"previous_names":["devkanix/k-media"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devKanix/K-Media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devKanix%2FK-Media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devKanix%2FK-Media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devKanix%2FK-Media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devKanix%2FK-Media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devKanix","download_url":"https://codeload.github.com/devKanix/K-Media/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devKanix%2FK-Media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api","expressjs","mongodb","nodejs"],"created_at":"2024-11-18T01:07:20.191Z","updated_at":"2026-04-07T20:31:44.953Z","avatar_url":"https://github.com/devKanix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K-Media: Social Media Platform Backend\n\nWelcome to the K-Media Social Media Platform backend repository. This project is a backend implementation for a social media platform built using Node.js, Express.js, and MongoDB. The backend handles user authentication, profile management, and post creation.\n\n## Features\n\n- **User Authentication**: Sign up, login, and secure your account using JWT tokens.\n- **User Profiles**: Create and manage user profiles with personal details.\n- **Posts**: Create, edit, and delete posts.\n\n## Tech Stack\n\n- **Node.js**: JavaScript runtime for building server-side applications.\n- **Express.js**: Web framework for building APIs.\n- **MongoDB**: NoSQL database for storing user data and posts.\n- **Mongoose**: ODM for MongoDB to interact with the database easily.\n- **JWT**: JSON Web Tokens for secure authentication.\n\n## Installation\n\nTo set up this project locally, follow these steps:\n\n1. **Clone the repository and navigate to the project directory:**\n\n   ```bash\n   git clone https://github.com/Kanishk-Chaudhary/K-Media.git \u0026\u0026 cd K-Media\n   ```\n\n2. **Install the dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n3. **Create a `.env` file in the root directory and add the following environment variables:**\n\n   ```env\n   MONGO_URI=your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret\n   ```\n\n4. **Start the development server:**\n\n   ```bash\n   npm run start\n   ```\n\n5. The server will run on `http://localhost:5000`.\n\n## API Endpoints\n\n### User Authentication\n\n- **POST /api/users/signup**: Register a new user.\n- **POST /api/users/login**: Authenticate user and return a JWT token.\n\n### User Profile\n\n- **GET /api/profile/:**: Get the logged-in user's profile.\n- **POST /api/profile**: Create or update a user profile.\n\n### Posts\n\n- **POST /api/posts**: Create a new post.\n- **GET /api/posts/:id**: Get all posts.\n- **DELETE /api/posts/:id**: Delete a post by ID.\n\n## Thank You\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkanix%2Fk-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkanix%2Fk-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkanix%2Fk-media/lists"}