{"id":19310902,"url":"https://github.com/kartikeyvaish/socio-backend","last_synced_at":"2026-04-10T12:32:06.354Z","repository":{"id":104064291,"uuid":"397503805","full_name":"kartikeyvaish/Socio-Backend","owner":"kartikeyvaish","description":"Backend for Socio Application. Used Express.js for the server-side and MongoDB as Database.","archived":false,"fork":false,"pushed_at":"2022-03-09T08:53:57.000Z","size":576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T03:31:36.085Z","etag":null,"topics":["backend","expressjs","instagram","mongodb","nodejs","social-network","socket-io"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kartikeyvaish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-08-18T06:58:33.000Z","updated_at":"2022-03-06T19:43:54.000Z","dependencies_parsed_at":"2023-11-24T07:15:13.240Z","dependency_job_id":null,"html_url":"https://github.com/kartikeyvaish/Socio-Backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kartikeyvaish/Socio-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2FSocio-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2FSocio-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2FSocio-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2FSocio-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kartikeyvaish","download_url":"https://codeload.github.com/kartikeyvaish/Socio-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2FSocio-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"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":["backend","expressjs","instagram","mongodb","nodejs","social-network","socket-io"],"created_at":"2024-11-10T00:26:52.261Z","updated_at":"2026-04-10T12:32:06.328Z","avatar_url":"https://github.com/kartikeyvaish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Socio Backend\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg width=\"200\" src=\"https://i.imgur.com/NSZRbpr.png\" /\u003e\r\n\u003c/p\u003e\r\n\r\nSocio is a social networking platform where users can pictures and videos as Posts with the world.\r\nUsers can chat with each other through real time.\r\n\r\n## Features\r\n\r\n- Users can create an account\r\n- Users can login\r\n- Users can upload pictures and videos as Posts\r\n- Users can chat with each other through real time\r\n- Users can like and comment on Posts\r\n- Users can follow other users\r\n- Users can view Posts, Profile, Comments and Likes of own as well as other users\r\n- Users will recieve notifications when they are followed etc.\r\n\r\n## Development Setup\r\n\r\nTo set up Socio for development, you need to install the following dependencies:\r\n\r\n- Install [Node](https://nodejs.org/en/)\r\n- Install [MongoDB](https://www.mongodb.com/download-center/community)\r\n- Create a `.env` file for environment variables\r\n\r\nFollow these steps to set up the development environment:\r\n\r\n### Step 1: Install Node.js from the [Node.js official website](https://nodejs.org/en/).\r\n\r\nDuring the developement process, I used node version v14.17.4. You can check your node version by running the following command:\r\n\r\n```shell\r\nnode -v\r\n```\r\n\r\n### Step 2: Install MongoDB from the [MongoDB official website](https://www.mongodb.com/download-center/community).\r\n\r\nMy MongoDB shell version `v5.0.2-rc0`\r\n\r\n### Step 3: Install [MongoDB Compass](https://www.mongodb.com/products/compass) and [Postman](https://www.postman.com/) (Optional)\r\n\r\nYou may want to install these two tools to help you with the development process.\r\nUsing MongoDB Compass, you can have a look at your database as it gives a nice overview of your database.\r\nPostman can be used to test API endpoints.\r\n\r\n### Step 4: Create a `.env` file for environment variables\r\n\r\nYou'll have to create a `.env` file for environment variables with the variables listed [here](https://github.com/kartikeyvaish/Socio-Backend/blob/main/README.md#env-file)\r\n\r\n### Step 5: Clone the repository\r\n\r\n    git clone https://github.com/kartikeyvaish/Socio-Backend.git\r\n\r\n### Step 6: Install dependencies\r\n\r\n    cd Socio-Backend\r\n\r\n    npm install\r\n\r\n### Step 7: Run the server\r\n\r\n    npm run dev\r\n\r\n#### .env file\r\n\r\n```dosini\r\n// development or production\r\nNODE_ENV=\"development\"\r\n\r\n// Local Database Configurations\r\nDB_Name=\"Socio\"\r\n\r\n// MongoDB Atlas Configurations\r\natlas_url=\"your_mongo_db_atlas_url_if_any\"\r\napiVersion=\"api_version_if_any\"\r\n\r\n// JWT keys\r\nOTP_Email_Send_Key=\"\"\r\nSignUP_API_KEY=\"\"\r\naccess_token_key_creator=\"\"\r\nrefresh_token_key_creator=\"\"\r\npayload_key_creator=\"\"\r\n\r\n// Endpoints Here\r\nauth=\"\"\r\notp=\"\"\r\nposts=\"\" \r\npeople=\"\"\r\nprofile=\"\"\r\nstories=\"\"\r\nchats=\"\"\r\n\r\n// Cloudinary Settings Below\r\nCLOUDINARY_URL=\"\"\r\nCLOUDINARY_NAME=\"\"\r\nCLOUDINARY_API_KEY=\"\"\r\nCLOUDINARY_API_SECRET=\"\"\r\n\r\ndefault_profile_picture=\"default_image_url\"\r\ndefault_channel_id=\"\"\r\n\r\n// Firebase SDK Json creds\r\nproject_id=\"\"\r\nclient_email=\"\"\r\nprivate_key=\"\"\r\n\r\n// Google Sign-In Client ID\r\ngoogleApiClientID=\"\"\r\nwebClientID=\"\"\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikeyvaish%2Fsocio-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartikeyvaish%2Fsocio-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikeyvaish%2Fsocio-backend/lists"}