{"id":25931936,"url":"https://github.com/jay1194/social-network-api","last_synced_at":"2026-05-06T15:31:45.687Z","repository":{"id":239099516,"uuid":"798509355","full_name":"Jay1194/Social-Network-API","owner":"Jay1194","description":"This project is a RESTful API for a social network application, enabling users to share thoughts, add friends, and interact with each other's content.","archived":false,"fork":false,"pushed_at":"2024-05-30T16:51:56.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T19:57:02.375Z","etag":null,"topics":["crud-api","getters","javascript","mongodb","mongoose","nosql","subdocuments","validator","virtuals"],"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/Jay1194.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-05-09T23:25:44.000Z","updated_at":"2024-05-30T16:51:59.000Z","dependencies_parsed_at":"2024-05-10T02:26:17.223Z","dependency_job_id":"c7e03cee-094c-42a2-8b62-906df613328a","html_url":"https://github.com/Jay1194/Social-Network-API","commit_stats":null,"previous_names":["jay1194/social-network-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay1194%2FSocial-Network-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay1194%2FSocial-Network-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay1194%2FSocial-Network-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay1194%2FSocial-Network-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jay1194","download_url":"https://codeload.github.com/Jay1194/Social-Network-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241758963,"owners_count":20015251,"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":["crud-api","getters","javascript","mongodb","mongoose","nosql","subdocuments","validator","virtuals"],"created_at":"2025-03-04T00:15:34.378Z","updated_at":"2026-05-06T15:31:40.664Z","avatar_url":"https://github.com/Jay1194.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Network API\n\n## Mock up\n![image](https://github.com/Jay1194/Social-Network-API/assets/105843570/258b288e-be30-45d3-ad21-75b51b84f1d5)\n\n## Description\nThis project is a RESTful API for a social network application. It allows users to create accounts, share their thoughts, add friends, and react to thoughts.\n\n## Installation Instructions\n1. Clone the repository to your local machine.\n2. Navigate to the project directory.\n3. Install dependencies using the command `npm install`.\n4. Set up a MongoDB database.\n5. Configure environment variables (if any).\n6. Start the server using the command `npm start`.\n\n## Usage Instructions\n- Use HTTP client software like Postman or curl to interact with the API endpoints.\n- Refer to the API Routes section for available endpoints and their functionalities.\n\n## API Routes\n\n### User Routes\n- **GET /api/users**: Get all users.\n- **GET /api/users/:id**: Get a user by ID.\n- **POST /api/users**: Create a new user.\n- **PUT /api/users/:id**: Update a user by ID.\n- **DELETE /api/users/:id**: Delete a user by ID.\n- **POST /api/users/:userId/friends/:friendId**: Add a friend to a user's friend list.\n- **DELETE /api/users/:userId/friends/:friendId**: Remove a friend from a user's friend list.\n\n### Thought Routes\n- **GET /api/thoughts**: Get all thoughts.\n- **GET /api/thoughts/:id**: Get a thought by ID.\n- **POST /api/thoughts**: Create a new thought.\n- **PUT /api/thoughts/:id**: Update a thought by ID.\n- **DELETE /api/thoughts/:id**: Delete a thought by ID.\n- **POST /api/thoughts/:thoughtId/reactions**: Add a reaction to a thought.\n- **DELETE /api/thoughts/:thoughtId/reactions/:reactionId**: Remove a reaction from a thought.\n\n## Technologies Used\n- Node.js\n- Express.js\n- MongoDB\n- Mongoose\n- Validator\n\n## License\nThis project is licensed under the MIT License.\n\n## Contact Information\nFor any inquiries or issues, please contact Jayden Taylor at devmasterinbox@gmail.com.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay1194%2Fsocial-network-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay1194%2Fsocial-network-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay1194%2Fsocial-network-api/lists"}