{"id":19607041,"url":"https://github.com/paramveer-psr/socialpsych","last_synced_at":"2026-02-25T16:32:27.160Z","repository":{"id":255402549,"uuid":"849505759","full_name":"Paramveer-psr/SocialPsych","owner":"Paramveer-psr","description":"SocialPsych is a social media platform built using the MERN stack (MongoDB, Express, React, Node.js). It allows users to connect, chat, and share posts. Key features include user authentication, profile management, real-time chat, and post creation. ","archived":false,"fork":false,"pushed_at":"2025-02-13T06:06:27.000Z","size":1852,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T19:46:15.582Z","etag":null,"topics":["chat","mern-stack","social-media","socket-io"],"latest_commit_sha":null,"homepage":"https://socialpsych.vercel.app","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/Paramveer-psr.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,"zenodo":null}},"created_at":"2024-08-29T17:55:45.000Z","updated_at":"2025-02-13T06:06:30.000Z","dependencies_parsed_at":"2024-08-29T19:56:17.061Z","dependency_job_id":"594f50b1-5732-4598-82e9-0132347414b1","html_url":"https://github.com/Paramveer-psr/SocialPsych","commit_stats":null,"previous_names":["paramveer-psr/socialpsych"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Paramveer-psr/SocialPsych","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paramveer-psr%2FSocialPsych","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paramveer-psr%2FSocialPsych/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paramveer-psr%2FSocialPsych/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paramveer-psr%2FSocialPsych/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paramveer-psr","download_url":"https://codeload.github.com/Paramveer-psr/SocialPsych/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paramveer-psr%2FSocialPsych/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29830149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"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":["chat","mern-stack","social-media","socket-io"],"created_at":"2024-11-11T10:08:30.969Z","updated_at":"2026-02-25T16:32:27.132Z","avatar_url":"https://github.com/Paramveer-psr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SocialPsych\n\nSocialPsych is a social media platform that allows users to connect, chat, and share posts. This project is built using a MERN stack (MongoDB, Express, React, Node.js).\n\n## Features\n\n- User Authentication (Sign Up, Sign In, Sign Out)\n- User Profile Management\n- Real-time Chat\n- Create and View Posts\n- Search Conversations\n\n## Technologies Used\n\n- **Frontend**: React, Tailwind CSS\n- **Backend**: Node.js, Express.js, MongoDB\n- **Real-time Communication**: Socket.io\n- **File Upload**: Multer, Cloudinary\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/Paramveer-psr/socialpsych.git\n   cd socialpsych\n   ```\n\n2. Install dependencies for both frontend and backend:\n\n   ```bash\n   cd frontend\n   npm install\n   cd ../backend\n   npm install\n   ```\n\n3. Set up environment variables:\n\n   - Create a `.env` file in the `backend` directory and add the following:\n     ```env\n     MONGO_URI=your_mongodb_connection_string\n     JWT_SECRET=your_jwt_secret\n     CLOUDINARY_API_KEY=your_cloudinary_api_key\n     CLOUDINARY_API_SECRET=your_cloudinary_api_secret\n     CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name\n     ```\n\n4. Start the development servers:\n   - Backend:\n     ```bash\n     cd backend\n     npm run dev\n     ```\n   - Frontend:\n     ```bash\n     cd frontend\n     npm run dev\n     ```\n\n## Usage\n\n1. Open your browser and navigate to `http://localhost:5173`.\n2. Sign up for a new account or sign in with an existing account.\n3. Create a profile by uploading an avatar and filling in your details.\n4. Start chatting with other users and create posts.\n\n## Project Structure\n\n```\nsociopsych/\n├── backend/\n│   ├── src/\n│   │   ├── controllers/\n│   │   │   ├── message.controller.js\n│   │   │   ├── user.controller.js\n│   │   ├── middlewares/\n│   │   │   ├── multer.middleware.js\n│   │   ├── models/\n│   │   │   ├── message.model.js\n│   │   │   ├── user.model.js\n│   │   ├── routes/\n│   │   │   ├── message.routes.js\n│   │   │   ├── user.routes.js\n│   │   ├── utils/\n│   │   │   ├── asyncHandler.js\n│   │   │   ├── ApiResponse.js\n│   │   │   ├── ApiError.js\n│   │   │   ├── cloudinary.js\n│   │   ├── server.js\n│   ├── .env\n│   ├── package.json\n├── frontend/\n│   ├── src/\n│   │   ├── components/\n│   │   │   ├── Avatar.jsx\n│   │   │   ├── Chat.jsx\n│   │   │   ├── CreatePost.jsx\n│   │   │   ├── Header.jsx\n│   │   │   ├── Loader.jsx\n│   │   │   ├── Post.jsx\n│   │   │   ├── Sidebar.jsx\n│   │   ├── routes/\n│   │   │   ├── Chat.jsx\n│   │   │   ├── CreatePost.jsx\n│   │   │   ├── SetProfile.jsx\n│   │   │   ├── SignIn.jsx\n│   │   │   ├── SignUp.jsx\n│   │   │   ├── Home.jsx\n│   │   │   ├── Dashboard.jsx\n│   │   │   ├── ProfilePage.jsx\n│   │   ├── store/\n│   │   │   ├── slices/\n│   │   │   │   ├── authSlice.js\n│   │   ├── utils/\n│   │   │   ├── api/\n│   │   │   │   ├── chat.js\n│   │   │   │   ├── users.js\n│   │   │   ├── ApiRoutes.js\n│   │   ├── App.jsx\n│   │   ├── index.js\n│   ├── package.json\n├── README.md\n```\n\n## API Endpoints\n\n### User Routes\n\n- **POST** `/api/user/sign-up` - Register a new user\n- **POST** `/api/user/sign-in` - Login a user\n- **POST** `/api/user/sign-out` - Logout a user\n- **POST** `/api/user/set-profile` - Set user profile\n- **GET** `/api/user/users` - Get all users\n\n### Message Routes\n\n- **GET** `/api/message/:chatId` - Get all messages in a chat\n- **POST** `/api/message` - Send a new message\n\n### Post Routes\n\n- **POST** `/api/post/create` - Create a new post\n- **GET** `/api/post` - Get all posts\n- **GET** `/api/post/user/:username` - Get posts by a specific user\n- **POST** `/api/post/like/:postId` - Like a post\n- **POST** `/api/post/comment/:postId` - Comment on a post\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamveer-psr%2Fsocialpsych","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparamveer-psr%2Fsocialpsych","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamveer-psr%2Fsocialpsych/lists"}