{"id":24731150,"url":"https://github.com/bahinkor/social-media","last_synced_at":"2026-02-10T16:09:00.107Z","repository":{"id":263994088,"uuid":"891983448","full_name":"Bahinkor/social-media","owner":"Bahinkor","description":"A social media project with expressJs framework  and mongoDB database.","archived":false,"fork":false,"pushed_at":"2024-12-25T16:16:42.000Z","size":10837,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T16:11:22.793Z","etag":null,"topics":["backend","express","expressjs","mongodb","mongoose","nodejs","social-media"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bahinkor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-21T10:02:17.000Z","updated_at":"2025-01-06T21:31:11.000Z","dependencies_parsed_at":"2024-12-20T13:21:04.588Z","dependency_job_id":"b6c0057c-6de7-4ebe-abaf-e973074ebba0","html_url":"https://github.com/Bahinkor/social-media","commit_stats":null,"previous_names":["bahinkor/social-media"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahinkor%2Fsocial-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahinkor%2Fsocial-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahinkor%2Fsocial-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahinkor%2Fsocial-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bahinkor","download_url":"https://codeload.github.com/Bahinkor/social-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244981124,"owners_count":20542287,"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","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":["backend","express","expressjs","mongodb","mongoose","nodejs","social-media"],"created_at":"2025-01-27T16:11:29.782Z","updated_at":"2026-02-10T16:09:00.079Z","avatar_url":"https://github.com/Bahinkor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Media Backend\n\nA social media project built using the Express.js framework and MongoDB database, designed to function similarly to Instagram, allowing users to share posts, interact with others, and engage with various social features.\n\n- Authentication \u0026 Authorization: Secure user authentication using JWT (JSON Web Token).\n- Database Management: MongoDB with Mongoose for efficient data modeling.\n- File Uploads: Support for image and video uploads, likely using Multer or Cloud Storage.\n- API Security: Input validation using Joi, and rate limiting to prevent abuse.\n- RESTful API: Well-structured RESTful APIs for frontend integration.\n- API Documentation: API documentation using Swagger (Swagger UI \u0026 OpenAPI) for clear and interactive API reference.\n\n\n## Getting Started\n\nFollow these instructions to get a copy of the project up and running on your local machine for development and testing\npurposes.\n\n### Prerequisites\n\nYou need to have the following software installed on your system:\n\n- Node.js\n- MongoDB\n\n### Installing\n\n1. Clone the repository to your local machine:\n\n```\ngit clone https://github.com/Bahinkor/social-media.git\n```\n\n2. Navigate to the project directory:\n\n```\ncd social-media\n```\n\n3. Install dependencies:\n\n```\nnpm install\n```\n\n### Setting Up MongoDB\n\n1. Make sure MongoDB is installed and running on your system.\n\n2. Create a new database named `social-media`.\n\n### Configuration\n\n1. Create a `.env` file in the root directory of the project.\n\n2. Add the following environment variables to the `.env` file:\n\n```\nPORT=8000\nMONGODB_URI=mongodb://localhost:27017/social-media\nREFRESH_TOKEN_EXPIRE=60\nACCESS_TOKEN_SECRET=RANDOM KEY\nNODE_ENV=development\nEMAIL=YOUR EMAIL\nEMAIL_PASS=YOUR EMAIL APP PASSWORD\nHOST=http://localhost:8000\nSESSION_SECRET=RANDOM KEY\nFRONT_URL=CLIENT HOST URL\n```\n\n### Running the Server\n\nStart the server by running the following command:\n\n```\nnpm start\n```\n\nThe server will be running on port 8000 by default.\n\n## Usage\n\nOnce the server is running, you can access the application by navigating to `http://localhost:8000` in your web browser.\n\n## Client repo:\n[Social Media Project Client Repo](https://github.com/Bahinkor/social-media-client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahinkor%2Fsocial-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahinkor%2Fsocial-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahinkor%2Fsocial-media/lists"}